!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?a<0?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;d0&&b-1 in a)}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=fa(),z=fa(),A=fa(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;c+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(xa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ea(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+pa(r[h]);s=r.join(","),w=_.test(a)&&na(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function fa(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ga(a){return a[u]=!0,a}function ha(a){var b=n.createElement("div");try{return!!a(b)}catch(xa){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ia(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ja(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ka(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function la(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ma(a){return ga(function(b){return b=+b,ga(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function na(a){return a&&void 0!==a.getElementsByTagName&&a}c=ea.support={},f=ea.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ea.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ha(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ha(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ha(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(void 0!==b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c=void 0!==a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return void 0!==b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if(void 0!==b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ha(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ha(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ha(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d||(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ja(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ja(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ea.matches=function(a,b){return ea(a,null,null,b)},ea.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(xa){}return ea(b,n,null,[a]).length>0},ea.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ea.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ea.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ea.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ea.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ea.selectors={cacheLength:50,createPseudo:ga,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ea.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ea.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||void 0!==a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ea.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),!1===t)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return(t-=e)===d||t%d==0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ea.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ga(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ga(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ga(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ga(function(a){return function(b){return ea(a,b).length>0}}),contains:ga(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ga(function(a){return V.test(a||"")||ea.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-")}while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ma(function(){return[0]}),last:ma(function(a,b){return[b-1]}),eq:ma(function(a,b,c){return[c<0?c+b:c]}),even:ma(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:ma(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sa(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=ta(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function va(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=qa(function(a){return a===b},h,!0),l=qa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ra(m),i>1&&pa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ta(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ea.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ga(f):f}return h=ea.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=va(b[c]),f[u]?d.push(f):e.push(f);f=A(a,wa(e,d)),f.selector=a}return f},i=ea.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(!(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0]))return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&na(b.parentNode)||b))){if(j.splice(i,1),!(a=f.length&&pa(j)))return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&na(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ha(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ha(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ia("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ha(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ia("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ha(function(a){return null==a.getAttribute("disabled")})||ia(K,function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ea}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;b1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(!(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a))||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if((f=d.getElementById(e[2]))&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))}).prototype=n.fn,A=n(d);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;b-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.uniqueSort(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g;function G(a){var b={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);b0||(H.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function I(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J)):(d.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(I(),n.ready())}n.ready.promise=function(b){if(!H)if(H=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J);else{d.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&function b(){if(!n.isReady){try{c.doScroll("left")}catch(e){return a.setTimeout(b,50)}I(),n.ready()}}()}return H.promise(b)},n.ready.promise();var K;for(K in n(l))break;l.ownFirst="0"===K,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;(c=d.getElementsByTagName("body")[0])&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),void 0!==b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var L=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return(1===c||9===c)&&(!b||!0!==b&&a.getAttribute("classid")===b)},M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if("string"==typeof(c=a.getAttribute(d))){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:M.test(c)?n.parseJSON(c):c)}catch(e){}n.data(a,b,c)}else c=void 0}return c}function P(a){var b ;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(L(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?null==(f=g[b])&&(f=g[n.camelCase(b)]):f=g,f}}function R(a,b,c){if(L(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return!!(a=a.nodeType?n.cache[a[n.expando]]:a[n.expando])&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),O(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?O(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var ca={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};ca.optgroup=ca.option,ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead,ca.th=ca.td;function da(a,b){var c,d,e=0,f=void 0!==a.getElementsByTagName?a.getElementsByTagName(b||"*"):void 0!==a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,da(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function ea(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var fa=/<|&#?\w+;/,ga=/"!==m[1]||ga.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(da(q,"input"),ha),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=da(p.appendChild(g),"script"),h&&ea(i),c){f=0;while(g=i[f++])$.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=!1===e.attributes[c].expando);e=null}();var ja=/^(?:input|select|textarea)$/i,ka=/^key/,la=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ma=/^(?:focusinfocus|focusoutblur)$/,na=/^([^.]*)(?:\.(.+)|)/;function oa(){return!0}function pa(){return!1}function qa(){try{return d.activeElement}catch(a){}}function ra(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ra(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),!1===e)e=pa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return void 0===n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=na.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&!1!==j.setup.call(a,d,p,k)||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=na.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&!1!==l.teardown.call(a,p,r.handle)||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ma.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||!1!==l.trigger.apply(e,c))){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,ma.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),(g=h&&i[h])&&g.apply&&L(i)&&(b.result=g.apply(i,c),!1===b.result&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),c))&&L(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||!1!==k.preDispatch.call(this,a)){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,void 0!==(d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i))&&!1===(a.result=d)&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(!0!==i.disabled||"click"!==a.type)){for(d=[],c=0;c-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,va=/\s*$/g,za=ba(d),Aa=za.appendChild(d.createElement("div"));function Ba(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Ca(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Da(a){var b=xa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ea(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d1&&"string"==typeof q&&!l.checkClone&&wa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ga(f,b,c,d)});if(o&&(k=ia(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(da(k,"script"),Ca),h=i.length;m")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ta.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Aa.innerHTML=a.outerHTML,Aa.removeChild(f=Aa.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=da(f),h=da(a),g=0;null!=(e=h[g]);++g)d[g]&&Fa(e,d[g]);if(b)if(c)for(h=h||da(a),d=d||da(f),g=0;null!=(e=h[g]);g++)Ea(e,d[g]);else Ea(a,f);return d=da(f,"script"),d.length>0&&ea(d,!i&&da(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||L(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||void 0===d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ga,detach:function(a){return Ha(this,a,!0)},remove:function(a){return Ha(this,a)},text:function(a){return X(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){Ba(this,a).appendChild(a)}})},prepend:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ba(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(da(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return X(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(sa,""):void 0;if("string"==typeof a&&!va.test(a)&&(l.htmlSerialize||!ta.test(a))&&(l.leadingWhitespace||!_.test(a))&&!ca[(Z.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;c")).appendTo(b.documentElement),b=(Ia[0].contentWindow||Ia[0].contentDocument).document,b.write(),b.close(),c=Ka(a,b),Ia.detach()),Ja[a]=c),c}var Ma=/^margin/,Na=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Oa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Pa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="
t
",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",(f=0===k[0].offsetHeight)&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}j.style&&(j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}}))}();var Qa,Ra,Sa=/^(top|right|bottom|left)$/;a.getComputedStyle?(Qa=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Na.test(g)&&Ma.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Pa.currentStyle&&(Qa=function(a){return a.currentStyle},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Na.test(g)&&!Sa.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ta(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ua=/alpha\([^)]*\)/i,Va=/opacity\s*=\s*([^)]*)/i,Wa=/^(none|table(?!-c[ea]).+)/,Xa=new RegExp("^("+S+")(.*)$","i"),Ya={position:"absolute",visibility:"hidden",display:"block"},Za={letterSpacing:"0",fontWeight:"400"},$a=["Webkit","O","Moz","ms"],_a=d.createElement("div").style;function ab(a){if(a in _a)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=$a.length;while(c--)if((a=$a[c]+b)in _a)return a}function bb(a,b){for(var c,d,e,f=[],g=0,h=a.length;g=1||""===b)&&""===n.trim(f.replace(Ua,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ua.test(f)?f.replace(Ua,e):f+" "+e)}}),n.cssHooks.marginRight=Ta(l.reliableMarginRight,function(a,b){if(b)return Oa(a,{display:"inline-block"},Ra,[a,"marginRight"])}),n.cssHooks.marginLeft=Ta(l.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Ra(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Oa(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px"}),n.each({ margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Ma.test(a)||(n.cssHooks[a+b].set=cb)}),n.fn.extend({css:function(a,b){return X(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Qa(a),e=b.length;g1)},show:function(){return bb(this,!0)},hide:function(){return bb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function fb(a,b,c,d,e){return new fb.prototype.init(a,b,c,d,e)}n.Tween=fb,fb.prototype={constructor:fb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=fb.propHooks[this.prop];return a&&a.get?a.get(this):fb.propHooks._default.get(this)},run:function(a){var b,c=fb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):fb.propHooks._default.set(this),this}},fb.prototype.init.prototype=fb.prototype,fb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},fb.propHooks.scrollTop=fb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=fb.prototype.init,n.fx.step={};var gb,hb,ib=/^(?:toggle|show|hide)$/,jb=/queueHooks$/;function kb(){return a.setTimeout(function(){gb=void 0}),gb=n.now()}function lb(a,b){var c,d={height:a},e=0;for(b=b?1:0;e<4;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function mb(a,b,c){for(var d,e=(pb.tweeners[b]||[]).concat(pb.tweeners["*"]),f=0,g=e.length;f
a",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var qb=/\r/g,rb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),(b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return(b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(qb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(rb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||e<0,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;i-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){if(n.isArray(b))return a.checked=n.inArray(n(a).val(),b)>-1}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb,tb,ub=n.expr.attrHandle,vb=/^(?:checked|selected)$/i,wb=l.getSetAttribute,xb=l.input;n.fn.extend({attr:function(a,b){return X(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return void 0===a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?tb:sb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?xb&&wb||!vb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(wb?c:d)}}),tb={set:function(a,b,c){return!1===b?n.removeAttr(a,c):xb&&wb||!vb.test(c)?a.setAttribute(!wb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ub[b]||n.find.attr;xb&&wb||!vb.test(b)?ub[b]=function(a,b,d){var e,f;return d||(f=ub[b],ub[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ub[b]=f),e}:ub[b]=function(a,b,c){if(!c)return a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),xb&&wb||(n.attrHooks.value={set:function(a,b,c){if(!n.nodeName(a,"input"))return sb&&sb.set(a,b,c);a.defaultValue=b}}),wb||(sb={set:function(a,b,c){var d=a.getAttributeNode(c);if(d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c))return b}},ub.id=ub.name=ub.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:sb.set},n.attrHooks.contenteditable={set:function(a,b,c){sb.set(a,""!==b&&b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var yb=/^(?:input|select|textarea|button|object)$/i,zb=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return X(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):yb.test(a.nodeName)||zb.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Ab=/[\t\r\n\f]/g;function Bb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Bb(this)))});if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Bb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Bb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Bb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||!1===a?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Bb(c)+" ").replace(Ab," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Cb=a.location,Db=n.now(),Eb=/\?/,Fb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Fb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Gb=/#.*$/,Hb=/([?&])_=[^&]*/,Ib=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Jb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kb=/^(?:GET|HEAD)$/,Lb=/^\/\//,Mb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Nb={},Ob={},Pb="*/".concat("*"),Qb=Cb.href,Rb=Mb.exec(Qb.toLowerCase())||[];function Sb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Tb(a,b,c,d){var e={},f=a===Ob;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ub(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Vb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Wb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(!(g=j[i+" "+f]||j["* "+f]))for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){!0===g?g=j[e]:!0!==j[e]&&(f=h[0],k.unshift(h[1]));break}if(!0!==g)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qb,type:"GET",isLocal:Jb.test(Rb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ub(Ub(a,n.ajaxSettings),b):Ub(n.ajaxSettings,a)},ajaxPrefilter:Sb(Nb),ajaxTransport:Sb(Ob),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Ib.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(u<2)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),x(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Qb)+"").replace(Gb,"").replace(Lb,Rb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(F)||[""],null==l.crossDomain&&(d=Mb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Rb[1]&&d[2]===Rb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Rb[3]||("http:"===Rb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Tb(Nb,l,c,w),2===u)return w;i=n.event&&l.global,i&&0==n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Kb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Eb.test(f)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=Hb.test(f)?f.replace(Hb,"$1_="+Db++):f+(Eb.test(f)?"&":"?")+"_="+Db++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&!1!==l.contentType||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Pb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(!1===l.beforeSend.call(m,w,l)||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Tb(Ob,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,x)}catch(y){if(!(u<2))throw y;x(-1,y)}}else x(-1,"No Transport");function x(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&b<300||304===b,d&&(v=Vb(l,w,d)),v=Wb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),(x=w.getResponseHeader("etag"))&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",b<0&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Xb(a){return a.style&&a.style.display||n.css(a,"display")}function Yb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Xb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Yb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Zb=/%20/g,$b=/\[\]$/,_b=/\r?\n/g,ac=/^(?:submit|button|image|reset|file)$/i,bc=/^(?:input|select|textarea|keygen)/i;function cc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||$b.test(a)?d(a,e):cc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)cc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)cc(c,a[c],b,e);return d.join("&").replace(Zb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&bc.test(this.nodeName)&&!ac.test(a)&&(this.checked||!Y.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(_b,"\r\n")}}):{name:b.name,value:c.replace(_b,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?hc():d.documentMode>8?gc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&gc()||hc()}:gc;var dc=0,ec={},fc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in ec)ec[a](void 0,!0)}),l.cors=!!fc&&"withCredentials"in fc,(fc=l.ajax=!!fc)&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++dc;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete ec[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=ec[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function gc(){try{return new a.XMLHttpRequest}catch(b){}}function hc(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ic=[],jc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ic.pop()||n.expando+"_"+Db++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=!1!==b.jsonp&&(jc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&jc.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(jc,"$1"+e):!1!==b.jsonp&&(b.url+=(Eb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ic.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ia([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var kc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&kc)return kc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("
").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function lc(a){return n.isWindow(a)?a:9===a.nodeType&&(a.defaultView||a.parentWindow)}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(void 0!==e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=lc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Pa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return X(this,function(a,d,e){var f=lc(a);if(void 0===e)return f?b in f?f[b]:f.document.documentElement[d]:a[d];f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ta(l.pixelPosition,function(a,c){if(c)return c=Ra(a,b),Na.test(c)?n(a).position()[b]+"px":c})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(!0===d||!0===e?"margin":"border") ;return X(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var mc=a.jQuery,nc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=nc),b&&a.jQuery===n&&(a.jQuery=mc),n},b||(a.jQuery=a.$=n),n}); jQuery.noConflict(); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(a){var e,t,n,i;function r(e,t){var n,i,r,o=e.nodeName.toLowerCase();return"area"===o?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(r=a("img[usemap='#"+i+"']")[0])&&s(r))):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o&&e.href||t)&&s(e)}function s(e){return a.expr.filters.visible(e)&&!a(e).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(e){var t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=a(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&r.length?r:a(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(t){return function(e){return!!a.data(e,t)}}):function(e,t,n){return!!a.data(e,n[3])},focusable:function(e){return r(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var t=a.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&r(e,!n)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function s(e,t,n,i){return a.each(r,function(){t-=parseFloat(a.css(e,"padding"+this))||0,n&&(t-=parseFloat(a.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(a.css(e,"margin"+this))||0)}),t}a.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){a(this).css(i,s(this,e)+"px")})},a.fn["outer"+n]=function(e,t){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){a(this).css(i,s(this,e,!0,t)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(t=a.fn.removeData,function(e){return arguments.length?t.call(this,a.camelCase(e)):t.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:(i=a.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){a(e).focus(),n&&n.call(e)},t)}):i.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=a(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),a.ui.plugin={add:function(e,t,n){var i,r=a.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r",options:{disabled:!1,create:null},_createWidget:function(t,e){e=h(e||this.defaultElement||this)[0],this.element=h(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=h(),this.hoverable=h(),this.focusable=h(),e!==this&&(h.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=h(e.style?e.ownerDocument:e.document||e),this.window=h(this.document[0].defaultView||this.document[0].parentWindow)),this.options=h.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:h.noop,_getCreateEventData:h.noop,_create:h.noop,_init:h.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(h.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:h.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return h.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=h.widget.extend({},this.options[t]),s=0;s
"),o=e.children()[0];return I("body").append(e),t=o.offsetWidth,e.css("overflow","scroll"),t===(i=o.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),e=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.widthx(T(o),T(n))?l.important="horizontal":l.important="vertical",c.using.call(this,t,l)}),f.offset(I.extend(r,{using:t}))})},I.ui.position={fit:{left:function(t,i){var e,o=i.within,n=o.isWindow?o.scrollLeft:o.offset.left,l=o.width,f=t.left-i.collisionPosition.marginLeft,s=n-f,h=f+i.collisionWidth-l-n;i.collisionWidth>l?0l?0").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var e=(t.attr("aria-describedby")||"").split(/\s+/);e.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",d.trim(e.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),e=(t.attr("aria-describedby")||"").split(/\s+/),o=d.inArray(i,e);-1!==o&&e.splice(o,1),t.removeData("ui-tooltip-id"),(e=d.trim(e.join(" ")))?t.attr("aria-describedby",e):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=d("
").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var e=this;if("disabled"===t)return this[i?"_disable":"_enable"](),void(this.options[t]=i);this._super(t,i),"content"===t&&d.each(this.tooltips,function(t,i){e._updateContent(i.element)})},_disable:function(){var o=this;d.each(this.tooltips,function(t,i){var e=d.Event("blur");e.target=e.currentTarget=i.element[0],o.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=d(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=d(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var e=this,i=d(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=d(this);i.data("ui-tooltip-open")&&((t=d.Event("blur")).target=t.currentTarget=this,e.close(t,!0)),i.attr("title")&&(i.uniqueId(),e.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(i,e){var t,o=this.options.content,n=this,s=e?e.type:null;if("string"==typeof o)return this._open(e,i,o);(t=o.call(i[0],function(t){n._delay(function(){i.data("ui-tooltip-open")&&(e&&(e.type=s),this._open(e,i,t))})}))&&this._open(e,i,t)},_open:function(t,i,e){var o,n,s,l,a=d.extend({},this.options.position);function r(t){a.of=t,n.is(":hidden")||n.position(a)}e&&((o=this._find(i))?o.tooltip.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),n=o.tooltip,this._addDescribedBy(i,n.attr("id")),n.find(".ui-tooltip-content").html(e),this.liveRegion.children().hide(),e.clone?(l=e.clone()).removeAttr("id").find("[id]").removeAttr("id"):l=e,d("
").html(l).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):n.position(d.extend({of:i},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){n.is(":visible")&&(r(a.of),clearInterval(s))},d.fx.interval)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){if(t.keyCode===d.ui.keyCode.ESCAPE){var i=d.Event(t);i.currentTarget=e[0],this.close(i,!0)}}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var i,e=this,o=d(t?t.currentTarget:this.element),n=this._find(o);n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){e._removeTooltip(d(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&d.each(this.parents,function(t,i){d(i.element).attr("title",i.title),delete e.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:i}),n.hiding||(n.closing=!1))):o.removeData("ui-tooltip-open")},_tooltip:function(t){var i=d("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),e=i.uniqueId().attr("id");return d("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[e]={element:t,tooltip:i}},_find:function(t){var i=t.data("ui-tooltip-id");return i?this.tooltips[i]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var n=this;d.each(this.tooltips,function(t,i){var e=d.Event("blur"),o=i.element;e.target=e.currentTarget=o[0],n.close(e,!0),d("#"+t).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}); !function(e){"function"==typeof define&&define.amd?define(["jquery","./widget"],e):e(jQuery)}(function(o){var u=!1;return o(document).mouseup(function(){u=!1}),o.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!u){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,s=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length;return!(s&&!i&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),u=!0))}},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),u=!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); !function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mouse","./widget"],e):e(jQuery)}(function(r){return r.widget("ui.slider",r.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t,i=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a=[];for(t=i.values&&i.values.length||1,s.length>t&&(s.slice(t).remove(),s=s.slice(0,t)),e=s.length;e");this.handles=s.add(r(a.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){r(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,t="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:r.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=r("
").appendTo(this.element),t="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(t+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var t,i,s,a,n,h,l,o=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-o.values(e));(t=this._valueMax())return this._valueMax();var t=0=t&&(s+=0
"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){b(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&b(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&b(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",n)}function n(){b.datepicker._isDisabledDatepicker(r.inline?r.dpDiv.parent()[0]:r.input[0])||(b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),b(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&b(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&b(this).addClass("ui-datepicker-next-hover"))}function h(e,t){for(var a in b.extend(e,t),t)null==t[a]&&(e[a]=t[a]);return e}return b.extend(b.ui,{datepicker:{version:"1.11.4"}}),b.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return h(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i,s;i="div"===(a=e.nodeName.toLowerCase())||"span"===a,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(b(e),i)).settings=b.extend({},t||{}),"input"===a?this._connectDatepicker(e,s):i&&this._inlineDatepicker(e,s)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(b("
")):this.dpDiv}},_connectDatepicker:function(e,t){var a=b(e);t.append=b([]),t.trigger=b([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(t),b.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i,s,r=this._get(t,"appendText"),n=this._get(t,"isRTL");t.append&&t.append.remove(),r&&(t.append=b(""+r+""),e[n?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(a=this._get(t,"showOn"))&&"both"!==a||e.focus(this._showDatepicker),"button"!==a&&"both"!==a||(i=this._get(t,"buttonText"),s=this._get(t,"buttonImage"),t.trigger=b(this._get(t,"buttonImageOnly")?b("").addClass(this._triggerClass).attr({src:s,alt:i,title:i}):b("").addClass(this._triggerClass).html(s?b("").attr({src:s,alt:i,title:i}):i)),e[n?"before":"after"](t.trigger),t.trigger.click(function(){return b.datepicker._datepickerShowing&&b.datepicker._lastInput===e[0]?b.datepicker._hideDatepicker():(b.datepicker._datepickerShowing&&b.datepicker._lastInput!==e[0]&&b.datepicker._hideDatepicker(),b.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,a,i,s,r=new Date(2009,11,20),n=this._get(e,"dateFormat");n.match(/[DM]/)&&(t=function(e){for(s=i=a=0;sa&&(a=e[s].length,i=s);return i},r.setMonth(t(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length)}},_inlineDatepicker:function(e,t){var a=b(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),b.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n,d,c,o,l=this._dialogInst;return l||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=b(""),this._dialogInput.keydown(this._doKeyDown),b("body").append(this._dialogInput),(l=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},b.data(this._dialogInput[0],"datepicker",l)),h(l.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(l,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(n=document.documentElement.clientWidth,d=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,o=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[n/2-100+c,d/2-150+o]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),l.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),b.blockUI&&b.blockUI(this.dpDiv),b.data(this._dialogInput[0],"datepicker",l),this},_destroyDatepicker:function(e){var t,a=b(e),i=b.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),b.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),r===i&&(r=null))},_enableDatepicker:function(t){var e,a,i=b(t),s=b.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((a=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=b.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a,i=b(t),s=b.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((a=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=b.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;td&&ic&&st;)--G<0&&(G=11,ee--);for(e.drawMonth=G,e.drawYear=ee,a=this._get(e,"prevText"),a=B?this.formatDate(a,this._daylightSavingAdjust(new Date(ee,G-q,1)),this._getFormatConfig(e)):a,i=this._canAdjustMonth(e,-1,ee,G)?"
"+a+"":z?"":""+a+"",s=this._get(e,"nextText"),s=B?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,G+q,1)),this._getFormatConfig(e)):s,r=this._canAdjustMonth(e,1,ee,G)?""+s+"":z?"":""+s+"",n=this._get(e,"currentText"),d=this._get(e,"gotoCurrent")&&e.currentDay?X:H,n=B?this.formatDate(n,d,this._getFormatConfig(e)):n,c=e.inline?"":"",o=U?"
"+(P?c:"")+(this._isInRange(e,d)?"":"")+(P?"":c)+"
":"",l=parseInt(this._get(e,"firstDay"),10),l=isNaN(l)?0:l,h=this._get(e,"showWeek"),u=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),_=this._get(e,"monthNamesShort"),f=this._get(e,"beforeShowDay"),k=this._get(e,"showOtherMonths"),D=this._get(e,"selectOtherMonths"),m=this._getDefaultDate(e),y="",M=0;M"+(/all|left/.test(I)&&0===M?P?r:i:"")+(/all|right/.test(I)&&0===M?P?i:r:"")+this._generateMonthYearHeader(e,G,ee,Z,$,0",Y=h?"":"",v=0;v<7;v++)Y+="";for(x+=Y+"",N=this._getDaysInMonth(ee,G),ee===e.selectedYear&&G===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,N)),F=(this._getFirstDayOfMonth(ee,G)-l+7)%7,T=Math.ceil((F+N)/7),A=Q&&this.maxRows>T?this.maxRows:T,this.maxRows=A,K=this._daylightSavingAdjust(new Date(ee,G,1-F)),j=0;j",O=h?"":"",v=0;v<7;v++)R=f?f.apply(e.input?e.input[0]:null,[K]):[!0,""],W=(L=K.getMonth()!==G)&&!D||!R[0]||Z&&K"+(L&&!k?" ":W?""+K.getDate()+"":""+K.getDate()+"")+"",K.setDate(K.getDate()+1),K=this._daylightSavingAdjust(K);x+=O+""}11<++G&&(G=0,ee++),b+=x+="
"+this._get(e,"weekHeader")+""+p[S]+"
"+this._get(e,"calculateWeek")(K)+"
"+(Q?"
"+(0
":""):"")}y+=b}return y+=o,e._keyEvent=!1,y},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g,_,f=this._get(e,"changeMonth"),k=this._get(e,"changeYear"),D=this._get(e,"showMonthAfterYear"),m="
",y="";if(r||!f)y+=""+n[t]+"";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+=""}if(D||(m+=y+(!r&&f&&k?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!k)m+=""+a+"";else{for(h=this._get(e,"yearRange").split(":"),u=(new Date).getFullYear(),g=(p=function(e){var t=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?u+parseInt(e,10):parseInt(e,10);return isNaN(t)?u:t})(h[0]),_=Math.max(g,p(h[1]||"")),g=i?Math.max(g,i.getFullYear()):g,_=s?Math.min(_,s.getFullYear()):_,e.yearshtml+="",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),D&&(m+=(!r&&f&&k?"":" ")+y),m+="
"},_adjustInstDate:function(e,t,a){var i=e.drawYear+("Y"===a?t:0),s=e.drawMonth+("M"===a?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),n=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,r)));e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),s=a&&t=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!n||t.getFullYear()>=n)&&(!d||t.getFullYear()<=d)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),b.fn.datepicker=function(e){if(!this.length)return this;b.datepicker.initialized||(b(document).mousedown(b.datepicker._checkExternalClick),b.datepicker.initialized=!0),0===b("#"+b.datepicker._mainDivId).length&&b("body").append(b.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this].concat(t)):b.datepicker._attachDatepicker(this,e)}):b.datepicker["_"+e+"Datepicker"].apply(b.datepicker,[this[0]].concat(t))},b.datepicker=new e,b.datepicker.initialized=!1,b.datepicker.uuid=(new Date).getTime(),b.datepicker.version="1.11.4",b.datepicker}); if("undefined"==typeof jQuery){throw new Error("Bootstrap requires jQuery")}+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in e){if(void 0!==f.style[g]){return{end:e[g]}}}return !1}d.fn.emulateTransitionEnd=function(a){var h=!1,g=this;d(this).one(d.support.transition.end,function(){h=!0});var f=function(){h||d(g).trigger(d.support.transition.end)};return setTimeout(f,a),this},d(function(){d.support.transition=c()})}(jQuery),+function(f){var e='[data-dismiss="alert"]',h=function(a){f(a).on("click",e,this.close)};h.prototype.close=function(a){function l(){i.trigger("closed.bs.alert").remove()}var k=f(this),j=k.attr("data-target");j||(j=k.attr("href"),j=j&&j.replace(/.*(?=#[^\s]*$)/,""));var i=f(j);a&&a.preventDefault(),i.length||(i=k.hasClass("alert")?k:k.parent()),i.trigger(a=f.Event("close.bs.alert")),a.isDefaultPrevented()||(i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one(f.support.transition.end,l).emulateTransitionEnd(150):l())};var g=f.fn.alert;f.fn.alert=function(a){return this.each(function(){var c=f(this),b=c.data("bs.alert");b||c.data("bs.alert",b=new h(this)),"string"==typeof a&&b[a].call(c)})},f.fn.alert.Constructor=h,f.fn.alert.noConflict=function(){return f.fn.alert=g,this},f(document).on("click.bs.alert.data-api",e,h.prototype.close)}(jQuery),+function(e){var d=function(b,a){this.$element=e(b),this.options=e.extend({},d.DEFAULTS,a),this.isLoading=!1};d.DEFAULTS={loadingText:"loading..."},d.prototype.setState=function(a){var j="disabled",i=this.$element,h=i.is("input")?"val":"html",g=i.data();a+="Text",g.resetText||i.data("resetText",i[h]()),i[h](g[a]||this.options[a]),setTimeout(e.proxy(function(){"loadingText"==a?(this.isLoading=!0,i.addClass(j).attr(j,j)):this.isLoading&&(this.isLoading=!1,i.removeClass(j).removeAttr(j))},this),0)},d.prototype.toggle=function(){var h=!0,g=this.$element.closest('[data-toggle="buttons"]');if(g.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?h=!1:g.find(".active").removeClass("active")),h&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}h&&this.$element.toggleClass("active")};var f=e.fn.button;e.fn.button=function(a){return this.each(function(){var g=e(this),c=g.data("bs.button"),b="object"==typeof a&&a;c||g.data("bs.button",c=new d(this,b)),"toggle"==a?c.toggle():a&&c.setState(a)})},e.fn.button.Constructor=d,e.fn.button.noConflict=function(){return e.fn.button=f,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(a){var g=e(a.target);g.hasClass("btn")||(g=g.closest(".btn")),g.button("toggle"),a.preventDefault()})}(jQuery),+function(e){var d=function(a,g){this.$element=e(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=g,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};d.DEFAULTS={interval:5000,pause:"hover",wrap:!0},d.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},d.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},d.prototype.to=function(a){var h=this,g=this.getActiveIndex();return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){h.to(a)}):g==a?this.pause().cycle():this.slide(a>g?"next":"prev",e(this.$items[a]))},d.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){return this.sliding?void 0:this.slide("next")},d.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},d.prototype.slide=function(r,q){var p=this.$element.find(".item.active"),o=q||p[r](),n=this.interval,m="next"==r?"left":"right",l="next"==r?"first":"last",k=this;if(!o.length){if(!this.options.wrap){return}o=this.$element.find(".item")[l]()}if(o.hasClass("active")){return this.sliding=!1}var a=e.Event("slide.bs.carousel",{relatedTarget:o[0],direction:m});return this.$element.trigger(a),a.isDefaultPrevented()?void 0:(this.sliding=!0,n&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var c=e(k.$indicators.children()[k.getActiveIndex()]);c&&c.addClass("active")})),e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),o[0].offsetWidth,p.addClass(m),o.addClass(m),p.one(e.support.transition.end,function(){o.removeClass([r,m].join(" ")).addClass("active"),p.removeClass(["active",m].join(" ")),k.sliding=!1,setTimeout(function(){k.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1000*p.css("transition-duration").slice(0,-1))):(p.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),n&&this.cycle(),this)};var f=e.fn.carousel;e.fn.carousel=function(a){return this.each(function(){var i=e(this),h=i.data("bs.carousel"),c=e.extend({},d.DEFAULTS,i.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide;h||i.data("bs.carousel",h=new d(this,c)),"number"==typeof a?h.to(a):b?h[b]():c.interval&&h.pause().cycle()})},e.fn.carousel.Constructor=d,e.fn.carousel.noConflict=function(){return e.fn.carousel=f,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(a){var l,k=e(this),j=e(k.attr("data-target")||(l=k.attr("href"))&&l.replace(/.*(?=#[^\s]+$)/,"")),i=e.extend({},j.data(),k.data()),h=k.attr("data-slide-to");h&&(i.interval=!1),j.carousel(i),(h=k.attr("data-slide-to"))&&j.data("bs.carousel").to(h),a.preventDefault()}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var a=e(this);a.carousel(a.data())})})}(jQuery),+function(e){var d=function(b,a){this.$element=e(b),this.options=e.extend({},d.DEFAULTS,a),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var l=this.$parent&&this.$parent.find("> .panel > .in");if(l&&l.length){var k=l.data("bs.collapse");if(k&&k.transitioning){return}l.collapse("hide"),k||l.data("bs.collapse",null)}var j=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[j](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[j]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition){return i.call(this)}var h=e.camelCase(["scroll",j].join("-"));this.$element.one(e.support.transition.end,e.proxy(i,this)).emulateTransitionEnd(350)[j](this.$element[0][h])}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=e.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var g=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return e.support.transition?void this.$element[h](0).one(e.support.transition.end,e.proxy(g,this)).emulateTransitionEnd(350):g.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var f=e.fn.collapse;e.fn.collapse=function(a){return this.each(function(){var g=e(this),c=g.data("bs.collapse"),b=e.extend({},d.DEFAULTS,g.data(),"object"==typeof a&&a);!c&&b.toggle&&"show"==a&&(a=!a),c||g.data("bs.collapse",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.collapse.Constructor=d,e.fn.collapse.noConflict=function(){return e.fn.collapse=f,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(r){var q,p=e(this),o=p.attr("data-target")||r.preventDefault()||(q=p.attr("href"))&&q.replace(/.*(?=#[^\s]+$)/,""),n=e(o),m=n.data("bs.collapse"),l=m?"toggle":p.data(),k=p.attr("data-parent"),a=k&&e(k);m&&m.transitioning||(a&&a.find('[data-toggle=collapse][data-parent="'+k+'"]').not(p).addClass("collapsed"),p[n.hasClass("in")?"addClass":"removeClass"]("collapsed")),n.collapse(l)})}(jQuery),+function(i){function h(a){i(m).remove(),i(l).each(function(){var c=n(i(this)),b={relatedTarget:this};c.hasClass("open")&&(c.trigger(a=i.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||c.removeClass("open").trigger("hidden.bs.dropdown",b))})}function n(a){var f=a.attr("data-target");f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var e=f&&i(f);return e&&e.length?e:a.parent()}var m=".dropdown-backdrop",l="#estimation_popup [data-toggle=dropdown]",k=function(a){i(a).on("click.bs.dropdown",this.toggle)};k.prototype.toggle=function(p){var o=i(this);if(!o.is(".disabled, :disabled")){var c=n(o),b=c.hasClass("open");if(h(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&i(''}),d.prototype=e.extend({},e.fn.b_tooltip.Constructor.prototype),d.prototype.constructor=d,d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.setContent=function(){var h=this.tip(),g=this.getTitle(),i=this.getContent();h.find(".popover-title")[this.options.html?"html":"text"](g),h.find(".popover-content")[this.options.html?"string"==typeof i?"html":"append":"text"](i),h.removeClass("fade top bottom left right in"),h.find(".popover-title").html()||h.find(".popover-title").hide()},d.prototype.hasContent=function(){return this.getTitle()||this.getContent()},d.prototype.getContent=function(){var g=this.$element,c=this.options;return g.attr("data-content")||("function"==typeof c.content?c.content.call(g[0]):c.content)},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},d.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var f=e.fn.popover;e.fn.popover=function(a){return this.each(function(){var g=e(this),c=g.data("bs.popover"),b="object"==typeof a&&a;(c||"destroy"!=a)&&(c||g.data("bs.popover",c=new d(this,b)),"string"==typeof a&&c[a]())})},e.fn.popover.Constructor=d,e.fn.popover.noConflict=function(){return e.fn.popover=f,this}}(jQuery),+function(e){function d(h,g){var b,a=e.proxy(this.process,this);this.$element=e(e(h).is("body")?window:h),this.$body=e("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",a),this.options=e.extend({},d.DEFAULTS,g),this.selector=(this.options.target||(b=e(h).attr("href"))&&b.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=e([]),this.targets=e([]),this.activeTarget=null,this.refresh(),this.process()}d.DEFAULTS={offset:10},d.prototype.refresh=function(){var a=this.$element[0]==window?"offset":"position";this.offsets=e([]),this.targets=e([]);var g=this;this.$body.find(this.selector).map(function(){var h=e(this),c=h.data("target")||h.attr("href"),b=/^#./.test(c)&&e(c);return b&&b.length&&b.is(":visible")&&[[b[a]().top+(!e.isWindow(g.$scrollElement.get(0))&&g.$scrollElement.scrollTop()),c]]||null}).sort(function(h,c){return h[0]-c[0]}).each(function(){g.offsets.push(this[0]),g.targets.push(this[1])})},d.prototype.process=function(){var i,h=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,m=n-this.$scrollElement.height(),l=this.offsets,k=this.targets,j=this.activeTarget;if(h>=m){return j!=(i=k.last()[0])&&this.activate(i)}if(j&&h<=l[0]){return j!=(i=k[0])&&this.activate(i)}for(i=l.length;i--;){j!=k[i]&&h>=l[i]&&(!l[i+1]||h<=l[i+1])&&this.activate(k[i])}},d.prototype.activate=function(a){this.activeTarget=a,e(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var h=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',g=e(h).parents("li").addClass("active");g.parent(".dropdown-menu").length&&(g=g.closest("li.dropdown").addClass("active")),g.trigger("activate.bs.scrollspy")};var f=e.fn.scrollspy;e.fn.scrollspy=function(a){return this.each(function(){var g=e(this),c=g.data("bs.scrollspy"),b="object"==typeof a&&a;c||g.data("bs.scrollspy",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.scrollspy.Constructor=d,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=f,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var a=e(this);a.scrollspy(a.data())})})}(jQuery),+function(e){var d=function(a){this.element=e(a)};d.prototype.show=function(){var a=this.element,l=a.closest("ul:not(.dropdown-menu)"),k=a.data("target");if(k||(k=a.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var j=l.find(".active:last a")[0],i=e.Event("show.bs.tab",{relatedTarget:j});if(a.trigger(i),!i.isDefaultPrevented()){var h=e(k);this.activate(a.parent("li"),l),this.activate(h,h.parent(),function(){a.trigger({type:"shown.bs.tab",relatedTarget:j})})}}},d.prototype.activate=function(a,l,k){function j(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),h?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active"),k&&k()}var i=l.find("> .active"),h=k&&e.support.transition&&i.hasClass("fade");h?i.one(e.support.transition.end,j).emulateTransitionEnd(150):j(),i.removeClass("in")};var f=e.fn.tab;e.fn.tab=function(a){return this.each(function(){var c=e(this),b=c.data("bs.tab");b||c.data("bs.tab",b=new d(this)),"string"==typeof a&&b[a]()})},e.fn.tab.Constructor=d,e.fn.tab.noConflict=function(){return e.fn.tab=f,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(a){a.preventDefault(),e(this).tab("show")})}(jQuery),+function(e){var d=function(b,a){this.options=e.extend({},d.DEFAULTS,a),this.$window=e(window).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(b),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};d.RESET="affix affix-top affix-bottom",d.DEFAULTS={offset:0},d.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(d.RESET).addClass("affix");var b=this.$window.scrollTop(),g=this.$element.offset();return this.pinnedOffset=g.top-b},d.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},d.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=e(document).height(),q=this.$window.scrollTop(),p=this.$element.offset(),o=this.options.offset,n=o.top,m=o.bottom;"top"==this.affixed&&(p.top+=q),"object"!=typeof o&&(m=n=o),"function"==typeof n&&(n=o.top(this.$element)),"function"==typeof m&&(m=o.bottom(this.$element));var l=null!=this.unpin&&q+this.unpin<=p.top?!1:null!=m&&p.top+this.$element.height()>=r-m?"bottom":null!=n&&n>=q?"top":!1;if(this.affixed!==l){this.unpin&&this.$element.css("top","");var b="affix"+(l?"-"+l:""),a=e.Event(b+".bs.affix");this.$element.trigger(a),a.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(d.RESET).addClass(b).trigger(e.Event(b.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:r-m-this.$element.height()}))}}};var f=e.fn.affix;e.fn.affix=function(a){return this.each(function(){var g=e(this),c=g.data("bs.affix"),b="object"==typeof a&&a;c||g.data("bs.affix",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.affix.Constructor=d,e.fn.affix.noConflict=function(){return e.fn.affix=f,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var a=e(this),g=a.data();g.offset=g.offset||{},g.offsetBottom&&(g.offset.bottom=g.offsetBottom),g.offsetTop&&(g.offset.top=g.offsetTop),a.affix(g)})})}(jQuery); !function(a){a.fn.bootstrapSwitch=function(c){var b={init:function(){return this.each(function(){var p=a(this),m,f,l,o,h="",g=p.attr("class"),i,d,j="ON",e="OFF",n=false;a.each(["switch-mini","switch-small","switch-large"],function(q,r){if(g.indexOf(r)>=0){h=r}});p.addClass("has-switch");if(p.data("on")!==undefined){i="switch-"+p.data("on")}if(p.data("on-label")!==undefined){j=p.data("on-label")}if(p.data("off-label")!==undefined){e=p.data("off-label")}if(p.data("icon")!==undefined){n=p.data("icon")}f=a("").addClass("switch-left").addClass(h).addClass(i).html(j);i="";if(p.data("off")!==undefined){i="switch-"+p.data("off")}l=a("").addClass("switch-right").addClass(h).addClass(i).html(e);o=a("
").attr("style","height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="+U[S]+", endColorstr="+U[S+1]+'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='+U[S]+", endColorstr="+U[S+1]+')";');huebar.append(M)}}else{stopList=U.join(",");huebar.attr("style","background:-webkit-linear-gradient(top,"+stopList+"); background: -o-linear-gradient(top,"+stopList+"); background: -ms-linear-gradient(top,"+stopList+"); background:-moz-linear-gradient(top,"+stopList+"); -webkit-linear-gradient(top,"+stopList+"); background:linear-gradient(to bottom,"+stopList+"); ")}N.find("div.colpick_hue").on("mousedown touchstart",J);V.newColor=N.find("div.colpick_new_color");V.currentColor=N.find("div.colpick_current_color");N.data("colpick",V);C(V.color,N.get(0));o(V.color,N.get(0));r(V.color,N.get(0));l(V.color,N.get(0));G(V.color,N.get(0));k(V.color,N.get(0));v(V.color,N.get(0));if(V.flat){N.appendTo(this).show();N.css({position:"relative",display:"block"})}else{if(V.parent=="body"){N.appendTo(document.body)}else{N.appendTo(V.parent)}e(this).on(V.showEvent,H);N.css({position:"absolute"})}}})},showPicker:function(){return this.each(function(){if(e(this).data("colpickId")){H.apply(this)}})},hidePicker:function(){return this.each(function(){if(e(this).data("colpickId")){e("#"+e(this).data("colpickId")).hide()}})},setColor:function(L,M){M=(typeof M==="undefined")?1:M;if(typeof L=="string"){L=g(L)}else{if(L.r!=undefined&&L.g!=undefined&&L.b!=undefined){L=b(L)}else{if(L.h!=undefined&&L.s!=undefined&&L.b!=undefined){L=A(L)}else{return this}}}return this.each(function(){if(e(this).data("colpickId")){var N=e("#"+e(this).data("colpickId"));N.data("colpick").color=L;N.data("colpick").origColor=L;C(L,N.get(0));o(L,N.get(0));r(L,N.get(0));l(L,N.get(0));G(L,N.get(0));v(L,N.get(0));N.data("colpick").onChange.apply(N.parent(),[L,a(L),f(L),N.data("colpick").el,1]);if(M){k(L,N.get(0))}}})}}}();var c=function(i){var i=parseInt(((i.indexOf("#")>-1)?i.substring(1):i),16);return{r:i>>16,g:(i&65280)>>8,b:(i&255)}};var g=function(i){return b(c(i))};var b=function(k){var j={h:0,s:0,b:0};var l=Math.min(k.r,k.g,k.b);var i=Math.max(k.r,k.g,k.b);var m=i-l;j.b=i;j.s=i!=0?255*m/i:0;if(j.s!=0){if(k.r==i){j.h=(k.g-k.b)/m}else{if(k.g==i){j.h=2+(k.b-k.r)/m}else{j.h=4+(k.r-k.g)/m}}}else{j.h=-1}j.h*=60;if(j.h<0){j.h+=360}j.s*=100/255;j.b*=100/255;return j};var f=function(i){var k={};var o=i.h;var n=i.s*255/100;var j=i.b*255/100;if(n==0){k.r=k.g=k.b=j}else{var p=j;var m=(255-n)*j/255;var l=(p-m)*(o%60)/60;if(o==360){o=0}if(o<60){k.r=p;k.b=m;k.g=m+l}else{if(o<120){k.g=p;k.b=m;k.r=p-l}else{if(o<180){k.g=p;k.r=m;k.b=m+l}else{if(o<240){k.b=p;k.r=m;k.g=p-l}else{if(o<300){k.b=p;k.g=m;k.r=m+l}else{if(o<360){k.r=p;k.g=m;k.b=p-l}else{k.r=0;k.g=0;k.b=0}}}}}}}return{r:Math.round(k.r),g:Math.round(k.g),b:Math.round(k.b)}};var d=function(i){var j=[i.r.toString(16),i.g.toString(16),i.b.toString(16)];e.each(j,function(k,l){if(l.length==1){j[k]="0"+l}});return j.join("")};var a=function(i){return d(f(i))};e.fn.extend({colpick:h.init,colpickHide:h.hidePicker,colpickShow:h.showPicker,colpickSetColor:h.setColor});e.extend({colpick:{rgbToHex:d,rgbToHsb:b,hsbToHex:a,hsbToRgb:f,hexToHsb:g,hexToRgb:c}})})(jQuery); (function(){var g,i,b,d,a,e,k,j,f=[].slice,h={}.hasOwnProperty,c=function(o,m){for(var l in m){if(h.call(m,l)){o[l]=m[l]}}function n(){this.constructor=o}n.prototype=m.prototype;o.prototype=new n();o.__super__=m.prototype;return o};k=function(){};i=(function(){function l(){}l.prototype.addEventListener=l.prototype.on;l.prototype.on=function(n,m){this._callbacks=this._callbacks||{};if(!this._callbacks[n]){this._callbacks[n]=[]}this._callbacks[n].push(m);return this};l.prototype.emit=function(){var n,r,p,o,q,m;o=arguments[0],n=2<=arguments.length?f.call(arguments,1):[];this._callbacks=this._callbacks||{};p=this._callbacks[o];if(p){for(q=0,m=p.length;q');this.element.appendChild(q)}r=q.getElementsByTagName("span")[0];if(r){if(r.textContent!=null){r.textContent=this.options.dictFallbackMessage}else{if(r.innerText!=null){r.innerText=this.options.dictFallbackMessage}}}return this.element.appendChild(this.getFallbackForm())},resize:function(q){var s,r,p;s={srcX:0,srcY:0,srcWidth:q.width,srcHeight:q.height};r=q.width/q.height;s.optWidth=this.options.thumbnailWidth;s.optHeight=this.options.thumbnailHeight;if((s.optWidth==null)&&(s.optHeight==null)){s.optWidth=s.srcWidth;s.optHeight=s.srcHeight}else{if(s.optWidth==null){s.optWidth=r*s.optHeight}else{if(s.optHeight==null){s.optHeight=(1/r)*s.optWidth}}}p=s.optWidth/s.optHeight;if(q.heightp){s.srcHeight=q.height;s.srcWidth=s.srcHeight*p}else{s.srcWidth=q.width;s.srcHeight=s.srcWidth/p}}s.srcX=(q.width-s.srcWidth)/2;s.srcY=(q.height-s.srcHeight)/2;return s},drop:function(p){return this.element.classList.remove("dz-drag-hover")},dragstart:k,dragend:function(p){return this.element.classList.remove("dz-drag-hover")},dragenter:function(p){return this.element.classList.add("dz-drag-hover")},dragover:function(p){return this.element.classList.add("dz-drag-hover")},dragleave:function(p){return this.element.classList.remove("dz-drag-hover")},paste:k,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(s){var r,A,B,y,x,u,C,q,p,z,w,t,v;if(this.element===this.previewsContainer){this.element.classList.add("dz-started")}if(this.previewsContainer){s.previewElement=m.createElement(this.options.previewTemplate.trim());s.previewTemplate=s.previewElement;this.previewsContainer.appendChild(s.previewElement);z=s.previewElement.querySelectorAll("[data-dz-name]");for(y=0,C=z.length;y'+this.options.dictRemoveFile+"");s.previewElement.appendChild(s._removeLink)}A=(function(D){return function(E){E.preventDefault();E.stopPropagation();if(s.status===m.UPLOADING){return m.confirm(D.options.dictCancelUploadConfirmation,function(){return D.removeFile(s)})}else{if(D.options.dictRemoveFileConfirmation){return m.confirm(D.options.dictRemoveFileConfirmation,function(){return D.removeFile(s)})}else{return D.removeFile(s)}}}})(this);t=s.previewElement.querySelectorAll("[data-dz-remove]");v=[];for(u=0,p=t.length;u\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n'};o=function(){var r,q,t,u,v,s,p;u=arguments[0],t=2<=arguments.length?f.call(arguments,1):[];for(s=0,p=t.length;s'+this.options.dictDefaultMessage+""))}if(this.clickableElements.length){u=(function(w){return function(){if(w.hiddenFileInput){w.hiddenFileInput.parentNode.removeChild(w.hiddenFileInput)}w.hiddenFileInput=document.createElement("input");w.hiddenFileInput.setAttribute("type","file");if((w.options.maxFiles==null)||w.options.maxFiles>1){w.hiddenFileInput.setAttribute("multiple","multiple")}w.hiddenFileInput.className="dz-hidden-input";if(w.options.acceptedFiles!=null){w.hiddenFileInput.setAttribute("accept",w.options.acceptedFiles)}if(w.options.capture!=null){w.hiddenFileInput.setAttribute("capture",w.options.capture)}w.hiddenFileInput.style.visibility="hidden";w.hiddenFileInput.style.position="absolute";w.hiddenFileInput.style.top="0";w.hiddenFileInput.style.left="0";w.hiddenFileInput.style.height="0";w.hiddenFileInput.style.width="0";document.querySelector(w.options.hiddenInputContainer).appendChild(w.hiddenFileInput);return w.hiddenFileInput.addEventListener("change",function(){var y,z,A,x;z=w.hiddenFileInput.files;if(z.length){for(A=0,x=z.length;A"}s+='';p=m.createElement(s);if(this.element.tagName!=="FORM"){r=m.createElement('
');r.appendChild(p)}else{this.element.setAttribute("enctype","multipart/form-data");this.element.setAttribute("method",this.options.method)}return r!=null?r:p};m.prototype.getExistingFallback=function(){var u,r,q,t,p,s;r=function(y){var w,x,v;for(x=0,v=y.length;x0){u=["TB","GB","MB","KB","b"];for(t=s=0,v=u.length;s=q){r=x/Math.pow(this.options.filesizeBase,4-t);p=w;break}}r=Math.round(10*r)/10}return""+r+" "+p};m.prototype._updateMaxFilesReachedClass=function(){if((this.options.maxFiles!=null)&&this.getAcceptedFiles().length>=this.options.maxFiles){if(this.getAcceptedFiles().length===this.options.maxFiles){this.emit("maxfilesreached",this.files)}return this.element.classList.add("dz-max-files-reached")}else{return this.element.classList.remove("dz-max-files-reached")}};m.prototype.drop=function(r){var q,p;if(!r.dataTransfer){return}this.emit("drop",r);q=r.dataTransfer.files;this.emit("addedfiles",q);if(q.length){p=r.dataTransfer.items;if(p&&p.length&&(p[0].webkitGetAsEntry!=null)){this._addFilesFromItems(p)}else{this.handleFiles(q)}}};m.prototype.paste=function(r){var p,q;if((r!=null?(q=r.clipboardData)!=null?q.items:void 0:void 0)==null){return}this.emit("paste",r);p=r.clipboardData.items;if(p.length){return this._addFilesFromItems(p)}};m.prototype.handleFiles=function(s){var r,t,q,p;p=[];for(t=0,q=s.length;t0){for(y=0,w=v.length;ythis.options.maxFilesize*1024*1024){return p(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(q.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize))}else{if(!m.isValidFile(q,this.options.acceptedFiles)){return p(this.options.dictInvalidFileType)}else{if((this.options.maxFiles!=null)&&this.getAcceptedFiles().length>=this.options.maxFiles){p(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles));return this.emit("maxfilesexceeded",q)}else{return this.options.accept.call(this,q,p)}}}};m.prototype.addFile=function(p){p.upload={progress:0,total:p.size,bytesSent:0};this.files.push(p);p.status=m.ADDED;this.emit("addedfile",p);this._enqueueThumbnail(p);return this.accept(p,(function(q){return function(r){if(r){p.accepted=false;q._errorProcessing([p],r)}else{p.accepted=true;if(q.options.autoQueue){q.enqueueFile(p)}}return q._updateMaxFilesReachedClass()}})(this))};m.prototype.enqueueFiles=function(r){var q,s,p;for(s=0,p=r.length;s=s){return}r=this.getQueuedFiles();if(!(r.length>0)){return}if(this.options.uploadMultiple){return this.processFiles(r.slice(0,s-p))}else{while(q=s;R=0<=s?++p:--p){Q.append(this._getParamName(R),D[R],this._renameFilename(D[R].name))}return this.submitRequest(G,Q,D)};m.prototype.submitRequest=function(r,q,p){return r.send(q)};m.prototype._finished=function(r,t,u){var q,s,p;for(s=0,p=r.length;ss){n=o[(t-1)*4+3];if(n===0){q=t}else{s=t}t=(q+s)>>1}r=t/u;if(r===0){return 1}else{return r}};e=function(t,m,r,q,s,n,v,u,l,p){var o;o=a(m);return t.drawImage(m,r,q,s,n,v,u,l,p/o)};d=function(n,r){var w,s,m,v,o,l,u,q,p;m=false;p=true;s=n.document;q=s.documentElement;w=(s.addEventListener?"addEventListener":"attachEvent");u=(s.addEventListener?"removeEventListener":"detachEvent");l=(s.addEventListener?"":"on");v=function(x){if(x.type==="readystatechange"&&s.readyState!=="complete"){return}(x.type==="load"?n:s)[u](l+x.type,v,false);if(!m&&(m=true)){return r.call(n,x.type||x)}};o=function(){var x;try{q.doScroll("left")}catch(y){x=y;setTimeout(o,50);return}return v("poll")};if(s.readyState!=="complete"){if(s.createEventObject&&q.doScroll){try{p=!n.frameElement}catch(t){}if(p){o()}}s[w](l+"DOMContentLoaded",v,false);s[w](l+"readystatechange",v,false);return n[w](l+"load",v,false)}};g._autoDiscoverFunction=function(){if(g.autoDiscover){return g.discover()}};d(window,g._autoDiscoverFunction)}).call(this); (function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()), d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords"); a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&fb(a)}function gb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX= a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("
").css({position:"absolute", top:1,left:1,width:100,overflow:"scroll"}).append(h("
").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function jb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);la(a,d,h(b).data())}function la(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig= e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(hb(c),J(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")}; b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return S(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI= d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;cq[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;jb&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild); c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c").appendTo(g));b=0;for(c=l.length;btr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH); if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart= -1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!nb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j",{"class":e?d[0]:""}).append(h("",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];s(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);s(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));s(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter; c.bSort&&ob(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function pb(a){var b=a.oClasses,c=h(a.nTable),c=h("
").insertBefore(c),d=a.oFeatures,e=h("
",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k")[0]; n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=qb(a);else if("f"==j&&d.bFilter)g=rb(a);else if("r"==j&&d.bProcessing)g=sb(a);else if("t"==j)g=tb(a);else if("i"==j&&d.bInfo)g=ub(a);else if("p"==j&&d.bPaginate)g=vb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("
",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("
").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ta(a,h(this).val());O(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function vb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},b=h("
").addClass(a.oClasses.sPaging+ b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;lf&& (d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none"); s(a,null,"processing",[a,b])}function tb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("
",{"class":f.sScrollWrapper}).append(h("
",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("
", {"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("
",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("
",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("
",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left", 0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],r=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(r.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=r;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return i[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"), j=a.nScrollBody,l=h(j),q=j.style,r=h(a.nScrollFoot).children("div"),m=r.children("table"),p=h(a.nTHead),o=h(a.nTable),t=o[0],s=t.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,ac=D(a.aoColumns,"nTh"),P,L,Q,w,Wa=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,Z(a);else{a.scrollBarVis=L;o.children("thead, tfoot").remove(); u&&(Q=u.clone().prependTo(o),P=u.find("tr"),Q=Q.find("tr"));w=p.clone().prependTo(o);p=p.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ta(a,w),function(b,c){B=$(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},Q);f=o.outerWidth();if(""===c){s.width="100%";if(U&&(o.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(o.outerWidth()-b);f=o.outerWidth()}else""!==d&&(s.width= v(d),f=o.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Wa.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,ac)!==-1)a.style.width=Wa[b]},p);h(L).height(0);u&&(I(C,Q),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},Q),I(function(a,b){a.style.width=y[b]},P),h(Q).height(0));I(function(a,b){a.innerHTML='
'+z[b]+"
";a.style.width=Wa[b]},L);u&&I(function(a,b){a.innerHTML='
'+ A[b]+"
";a.style.width=y[b]},Q);if(o.outerWidth()j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(P-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else P="100%";q.width=v(P);g.width=v(P);u&&(a.nScrollFoot.style.width=v(P));!e&&U&&(q.height=v(t.offsetHeight+b));c=o.outerWidth();n[0].style.width=v(c);i.width=v(c);d=o.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+ (x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=v(c),r[0].style.width=v(c),r[0].style[e]=d?b+"px":"0px");o.children("colgroup").insertBefore(o.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e").appendTo(j.find("tbody")); j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=ta(a,j.find("thead")[0]);for(m=0;m").css({width:p.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Hb(a,b){var c=Ib(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Ib(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;fd&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;ae?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return ce?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;jg?1:0})}a.bSorted=!0}function Kb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f/g, "");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0e?e+1:3));e=0;for(f=d.length;ee?e+1:3))}a.aLastSort=d}function Jb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,aa(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j=f.length?[0,c[1]]:c)}));b.search!==k&&h.extend(a.oPreviousSearch,Db(b.search));if(b.columns){d=0;for(e=b.columns.length;d=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Nb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0, c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function fb(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Za)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Za)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Ob(a){return function(){var b= [Aa(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(Aa(this[x.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing= function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)}; this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase(); return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Aa(this[x.iApiIndex])}; this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in m.ext.internal)e&&(this[e]=Ob(e));this.each(function(){var e={},g=1t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&& !o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(u,m.ext.classes,g.oClasses);q.addClass(u.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=g.iDisplayStart,o._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(o.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),o._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,o._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=o.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Fa(a); J(l.oLanguage,a);h.extend(true,v,a);ha(o)},error:function(){ha(o)}}),n=!0);null===g.asStripeClasses&&(o.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=o.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),o.asDestroyStripes=e.slice());e=[];r=this.getElementsByTagName("thead");0!==r.length&&(ea(o.aoHeader,r[0]),e=ta(o));if(null===g.aoColumns){r=[];j=0;for(i=e.length;j").appendTo(q)); o.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("").appendTo(q));o.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(o.oScroll.sX!==""||o.oScroll.sY!==""))b=h("").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){o.nTFoot=b[0];ea(o.aoFooter,o.nTFoot)}if(g.aaData)for(j=0;j/g,cc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,dc=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Za=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Qb=function(a){var b=parseInt(a,10);return!isNaN(b)&& isFinite(a)?b:null},Rb=function(a,b){$a[b]||($a[b]=RegExp(Sa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace($a[b],"."):a},ab=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Rb(a,b));c&&d&&(a=a.replace(Za,""));return!isNaN(parseFloat(a))&&isFinite(a)},Sb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:ab(a.replace(Ca,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;ea.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d")[0],$b=xa.textContent!==k,bc= /<.*?>/g,Qa=m.util.throttle,Ub=[],w=Array.prototype,ec=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};t=function(a,b){if(!(this instanceof t))return new t(a,b);var c=[],d=function(a){(a=ec(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;ea?new t(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1); return this});p(["row().child.remove()","row().child().remove()"],function(){eb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var fc=/^([^:]+):(name|visIdx|visible)$/,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Xb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(fc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[$(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()", function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Xb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()", "column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,n,l;if(a!==k&&g.bVisible!==a){if(a){var m=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(n=j.length;id;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof m.Api)return!0;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings, function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new t(c):c};m.camelToHungarian=J;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table", function(a){pa(a)})});p("settings()",function(){return new t(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}), p;b.bDestroying=!0;s(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];ya(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+d.sSortIcon+ ", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column", "row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=R(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.15";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null, _aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults= {aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g, this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+ "_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries", sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"}; Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null, bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[], aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null, aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a= this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{}, header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd", sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead", sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",G=Ea+"ui-state-default",ka=Ea+"css_right ui-icon ui-icon-",Yb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses, m.ext.classes,{sPageButton:"fg-button ui-button "+G,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:G+" sorting_asc",sSortDesc:G+" sorting_desc",sSortable:G+" sorting",sSortableAsc:G+" sorting_asc_disabled",sSortableDesc:G+" sorting_desc_disabled",sSortableNone:G+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",sSortJUI:ka+"carat-2-n-s", sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+G,sScrollFoot:"dataTables_scrollFoot "+G,sHeaderTH:G,sFooterTH:G,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;h.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a, b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,p=0,r=function(b,d){var k,t,u,s,v=function(b){Va(a,b.data.action,true)};k=0;for(t=d.length;k").appendTo(b);r(u,s)}else{m=null;l="";switch(s){case "ellipsis":b.append('');break;case "first":m=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=s+(e",{"class":g.sPageButton+ " "+l,"aria-controls":a.sTableId,"aria-label":i[s],"data-dt-idx":p,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(m).appendTo(b);Ya(u,{action:s},v);p++}}}},t;try{t=h(b).find(H.activeElement).data("dt-idx")}catch(u){}r(h(b).empty(),d);t!==k&&h(b).find("[data-dt-idx="+t+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!cc.test(a))return null;var b=Date.parse(a); return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Ca,""):""},string:function(a){return M(a)? a:"string"===typeof a?a.replace(Pb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a< b?-1:a>b?1:0},"string-desc":function(a,b){return ab?-1:0}});fb("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("
").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b); h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Zb=function(a){return"string"===typeof a?a.replace(//g,">").replace(/"/g, """):a};m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Zb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Zb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Ob,_fnBuildAjax:ua,_fnAjaxUpdate:nb,_fnAjaxParameters:wb,_fnAjaxUpdateDraw:xb, _fnAjaxDataSrc:va,_fnAddColumn:Ga,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:$,_fnColumnIndexToVisible:aa,_fnVisbleColumns:ba,_fnGetColumns:na,_fnColumnTypes:Ia,_fnApplyColumnDefs:kb,_fnHungarianMap:Y,_fnCamelToHungarian:J,_fnLanguageCompat:Fa,_fnBrowserDetect:ib,_fnAddData:N,_fnAddTr:oa,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:lb, _fnSplitObjNotation:La,_fnGetObjectDataFn:R,_fnSetObjectDataFn:S,_fnGetDataMaster:Ma,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:da,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:mb,_fnDrawHead:fa,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:pb,_fnDetectHeader:ea,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:rb,_fnFilterComplete:ga,_fnFilterCustom:Ab,_fnFilterColumn:zb,_fnFilter:yb,_fnFilterCreateSearch:Ra,_fnEscapeRegex:Sa,_fnFilterData:Bb,_fnFeatureHtmlInfo:ub,_fnUpdateInfo:Eb,_fnInfoMacros:Fb,_fnInitialise:ha, _fnInitComplete:wa,_fnLengthChange:Ta,_fnFeatureHtmlLength:qb,_fnFeatureHtmlPaginate:vb,_fnPageChange:Va,_fnFeatureHtmlProcessing:sb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:tb,_fnScrollDraw:ma,_fnApplyToChildren:I,_fnCalculateColumnWidths:Ha,_fnThrottle:Qa,_fnConvertToWidth:Gb,_fnGetWidestNode:Hb,_fnGetMaxLenString:Ib,_fnStringToCss:v,_fnSortFlatten:W,_fnSort:ob,_fnSortAria:Kb,_fnSortListener:Xa,_fnSortAttachListener:Oa,_fnSortingClasses:ya,_fnSortData:Jb,_fnSaveState:za,_fnLoadState:Lb,_fnSettingsFromNode:Aa, _fnLog:K,_fnMap:F,_fnBindAction:Ya,_fnCallbackReg:z,_fnCallbackFire:s,_fnLengthOverflow:Ua,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable}); (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(d,f){if(!("indexOf" in Array.prototype)){Array.prototype.indexOf=function(k,j){if(j===f){j=0}if(j<0){j+=this.length}if(j<0){j=0}for(var l=this.length;jthis.endDate){o.push("disabled")}else{if(Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(n.getUTCMinutes()/this.minuteStep)){o.push("active")}}return o.concat((p?p:[]))};this.onRenderYear=function(o){var q=(j.onRenderYear||function(){return[]})(o);var p=["year"];if(typeof q==="string"){q=[q]}if(this.date.getUTCFullYear()===o.getUTCFullYear()){p.push("active")}var n=o.getUTCFullYear();var r=this.endDate.getUTCFullYear();if(or){p.push("disabled")}return p.concat((q?q:[]))};this.onRenderMonth=function(n){var p=(j.onRenderMonth||function(){return[]})(n);var o=["month"];if(typeof p==="string"){p=[p]}return o.concat((p?p:[]))};this.startDate=new Date(-8639968443048000);this.endDate=new Date(8639968443048000);this.datesDisabled=[];this.daysOfWeekDisabled=[];this.setStartDate(j.startDate||this.element.data("date-startdate"));this.setEndDate(j.endDate||this.element.data("date-enddate"));this.setDatesDisabled(j.datesDisabled||this.element.data("date-dates-disabled"));this.setDaysOfWeekDisabled(j.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.setMinutesDisabled(j.minutesDisabled||this.element.data("date-minute-disabled"));this.setHoursDisabled(j.hoursDisabled||this.element.data("date-hour-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();if(this.isInline){this.show()}};g.prototype={constructor:g,_events:[],_attachEvents:function(){this._detachEvents();if(this.isInput){this._events=[[this.element,{focus:d.proxy(this.show,this),keyup:d.proxy(this.update,this),keydown:d.proxy(this.keydown,this)}]]}else{if(this.component&&this.hasInput){this._events=[[this.element.find("input"),{focus:d.proxy(this.show,this),keyup:d.proxy(this.update,this),keydown:d.proxy(this.keydown,this)}],[this.component,{click:d.proxy(this.show,this)}]];if(this.componentReset){this._events.push([this.componentReset,{click:d.proxy(this.reset,this)}])}}else{if(this.element.is("div")){this.isInline=true}else{this._events=[[this.element,{click:d.proxy(this.show,this)}]]}}}for(var j=0,k,l;j=this.startDate&&i<=this.endDate){this.date=i;this.setValue();this.viewDate=this.date;this.fill()}else{this.element.trigger({type:"outOfRange",date:i,startDate:this.startDate,endDate:this.endDate})}},setFormat:function(j){this.format=c.parseFormat(j,this.formatType);var i;if(this.isInput){i=this.element}else{if(this.component){i=this.element.find("input")}}if(i&&i.val()){this.setValue()}},setValue:function(){var i=this.getFormattedDate();if(!this.isInput){if(this.component){this.element.find("input").val(i)}this.element.data("date",i)}else{this.element.val(i)}if(this.linkField){d("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))}},getFormattedDate:function(i){i=i||this.format;return c.formatDate(this.date,i,this.language,this.formatType,this.timezone)},setStartDate:function(i){this.startDate=i||this.startDate;if(this.startDate.valueOf()!==8639968443048000){this.startDate=c.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)}this.update();this.updateNavArrows()},setEndDate:function(i){this.endDate=i||this.endDate;if(this.endDate.valueOf()!==8639968443048000){this.endDate=c.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)}this.update();this.updateNavArrows()},setDatesDisabled:function(j){this.datesDisabled=j||[];if(!d.isArray(this.datesDisabled)){this.datesDisabled=this.datesDisabled.split(/,\s*/)}var i=this;this.datesDisabled=d.map(this.datesDisabled,function(k){return c.parseDate(k,i.format,i.language,i.formatType,i.timezone).toDateString()});this.update();this.updateNavArrows()},setTitle:function(i,j){return this.picker.find(i).find("th:eq(1)").text(this.title===false?j:this.title)},setDaysOfWeekDisabled:function(i){this.daysOfWeekDisabled=i||[];if(!d.isArray(this.daysOfWeekDisabled)){this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)}this.daysOfWeekDisabled=d.map(this.daysOfWeekDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},setMinutesDisabled:function(i){this.minutesDisabled=i||[];if(!d.isArray(this.minutesDisabled)){this.minutesDisabled=this.minutesDisabled.split(/,\s*/)}this.minutesDisabled=d.map(this.minutesDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},setHoursDisabled:function(i){this.hoursDisabled=i||[];if(!d.isArray(this.hoursDisabled)){this.hoursDisabled=this.hoursDisabled.split(/,\s*/)}this.hoursDisabled=d.map(this.hoursDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},place:function(){if(this.isInline){return}if(!this.zIndex){var j=0;d("div").each(function(){var o=parseInt(d(this).css("zIndex"),10);if(o>j){j=o}});this.zIndex=j+10}var n,m,l,k;if(this.container instanceof d){k=this.container.offset()}else{k=d(this.container).offset()}if(this.component){n=this.component.offset();l=n.left;if(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left"){l+=this.component.outerWidth()-this.picker.outerWidth()}}else{n=this.element.offset();l=n.left;if(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left"){l+=this.element.outerWidth()-this.picker.outerWidth()}}var i=document.body.clientWidth||window.innerWidth;if(l+220>i){l=i-220}if(this.pickerPosition==="top-left"||this.pickerPosition==="top-right"){m=n.top-this.picker.outerHeight()}else{m=n.top+this.height}m=m-k.top;l=l-k.left;this.picker.css({top:m,left:l,zIndex:this.zIndex})},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var i,j=false;if(arguments&&arguments.length&&(typeof arguments[0]==="string"||arguments[0] instanceof Date)){i=arguments[0];j=true}else{i=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate;if(typeof i==="string"){i=i.replace(/^\s+|\s+$/g,"")}}if(!i){i=new Date();j=false}if(typeof i==="string"){if(new RegExp(this.hour_minute).test(i)||new RegExp(this.hour_minute+":[0-5][0-9]").test(i)){i=this.getDate()}}this.date=c.parseDate(i,this.format,this.language,this.formatType,this.timezone);if(j){this.setValue()}if(this.datethis.endDate){this.viewDate=new Date(this.endDate)}else{this.viewDate=new Date(this.date)}}this.fill()},fillDow:function(){var i=this.weekStart,j="";while(i'+e[this.language].daysMin[(i++)%7]+""}j+="";this.picker.find(".datetimepicker-days thead").append(j)},fillMonths:function(){var l="";var m=new Date(this.viewDate);for(var k=0;k<12;k++){m.setUTCMonth(k);var j=this.onRenderMonth(m);l+=''+e[this.language].monthsShort[k]+""}this.picker.find(".datetimepicker-months td").html(l)},fill:function(){if(!this.date||!this.viewDate){return}var E=new Date(this.viewDate),t=E.getUTCFullYear(),G=E.getUTCMonth(),n=E.getUTCDate(),A=E.getUTCHours(),w=this.startDate.getUTCFullYear(),B=this.startDate.getUTCMonth(),p=this.endDate.getUTCFullYear(),x=this.endDate.getUTCMonth()+1,q=(new h(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate())).valueOf(),D=new Date();this.setTitle(".datetimepicker-days",e[this.language].months[G]+" "+t);if(this.formatViewType==="time"){var k=this.getFormattedDate();this.setTitle(".datetimepicker-hours",k);this.setTitle(".datetimepicker-minutes",k)}else{this.setTitle(".datetimepicker-hours",n+" "+e[this.language].months[G]+" "+t);this.setTitle(".datetimepicker-minutes",n+" "+e[this.language].months[G]+" "+t)}this.picker.find("tfoot th.today").text(e[this.language].today||e.en.today).toggle(this.todayBtn!==false);this.picker.find("tfoot th.clear").text(e[this.language].clear||e.en.clear).toggle(this.clearBtn!==false);this.updateNavArrows();this.fillMonths();var I=h(t,G-1,28,0,0,0,0),z=c.getDaysInMonth(I.getUTCFullYear(),I.getUTCMonth());I.setUTCDate(z);I.setUTCDate(z-(I.getUTCDay()-this.weekStart+7)%7);var j=new Date(I);j.setUTCDate(j.getUTCDate()+42);j=j.valueOf();var r=[];var F;while(I.valueOf()")}F=this.onRenderDay(I);if(I.getUTCFullYear()t||(I.getUTCFullYear()===t&&I.getUTCMonth()>G)){F.push("new")}}if(this.todayHighlight&&I.getUTCFullYear()===D.getFullYear()&&I.getUTCMonth()===D.getMonth()&&I.getUTCDate()===D.getDate()){F.push("today")}if(I.valueOf()===q){F.push("active")}if((I.valueOf()+86400000)<=this.startDate||I.valueOf()>this.endDate||d.inArray(I.getUTCDay(),this.daysOfWeekDisabled)!==-1||d.inArray(I.toDateString(),this.datesDisabled)!==-1){F.push("disabled")}r.push(''+I.getUTCDate()+"");if(I.getUTCDay()===this.weekEnd){r.push("")}I.setUTCDate(I.getUTCDate()+1)}this.picker.find(".datetimepicker-days tbody").empty().append(r.join(""));r=[];var u="",C="",s="";var l=this.hoursDisabled||[];E=new Date(this.viewDate);for(var y=0;y<24;y++){E.setUTCHours(y);F=this.onRenderHour(E);if(l.indexOf(y)!==-1){F.push("disabled")}var v=h(t,G,n,y);if((v.valueOf()+3600000)<=this.startDate||v.valueOf()>this.endDate){F.push("disabled")}else{if(A===y){F.push("active")}}if(this.showMeridian&&e[this.language].meridiem.length===2){C=(y<12?e[this.language].meridiem[0]:e[this.language].meridiem[1]);if(C!==s){if(s!==""){r.push("")}r.push('
'+C.toUpperCase()+"")}s=C;u=(y%12?y%12:12);if(y<12){F.push("hour_am")}else{F.push("hour_pm")}r.push(''+u+"");if(y===23){r.push("
")}}else{u=y+":00";r.push(''+u+"")}}this.picker.find(".datetimepicker-hours td").html(r.join(""));r=[];u="";C="";s="";var m=this.minutesDisabled||[];E=new Date(this.viewDate);for(var y=0;y<60;y+=this.minuteStep){if(m.indexOf(y)!==-1){continue}E.setUTCMinutes(y);E.setUTCSeconds(0);F=this.onRenderMinute(E);if(this.showMeridian&&e[this.language].meridiem.length===2){C=(A<12?e[this.language].meridiem[0]:e[this.language].meridiem[1]);if(C!==s){if(s!==""){r.push("")}r.push('
'+C.toUpperCase()+"")}s=C;u=(A%12?A%12:12);r.push(''+u+":"+(y<10?"0"+y:y)+"");if(y===59){r.push("
")}}else{u=y+":00";r.push(''+A+":"+(y<10?"0"+y:y)+"")}}this.picker.find(".datetimepicker-minutes td").html(r.join(""));var J=this.date.getUTCFullYear();var o=this.setTitle(".datetimepicker-months",t).end().find(".month").removeClass("active");if(J===t){o.eq(this.date.getUTCMonth()).addClass("active")}if(tp){o.addClass("disabled")}if(t===w){o.slice(0,B).addClass("disabled")}if(t===p){o.slice(x).addClass("disabled")}r="";t=parseInt(t/10,10)*10;var H=this.setTitle(".datetimepicker-years",t+"-"+(t+9)).end().find("td");t-=1;E=new Date(this.viewDate);for(var y=-1;y<11;y++){E.setUTCFullYear(t);F=this.onRenderYear(E);if(y===-1||y===10){F.push(b)}r+=''+t+"";t+=1}H.html(r);this.place()},updateNavArrows:function(){var m=new Date(this.viewDate),k=m.getUTCFullYear(),l=m.getUTCMonth(),j=m.getUTCDate(),i=m.getUTCHours();switch(this.viewMode){case 0:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()&&j<=this.startDate.getUTCDate()&&i<=this.startDate.getUTCHours()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()&&j>=this.endDate.getUTCDate()&&i>=this.endDate.getUTCHours()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 1:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()&&j<=this.startDate.getUTCDate()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()&&j>=this.endDate.getUTCDate()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 2:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 3:case 4:if(k<=this.startDate.getUTCFullYear()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break}},mousewheel:function(j){j.preventDefault();j.stopPropagation();if(this.wheelPause){return}this.wheelPause=true;var i=j.originalEvent;var l=i.wheelDelta;var k=l>0?1:(l===0)?0:-1;if(this.wheelViewModeNavigationInverseDirection){k=-k}this.showMode(k);setTimeout(d.proxy(function(){this.wheelPause=false},this),this.wheelViewModeNavigationDelay)},click:function(m){m.stopPropagation();m.preventDefault();var n=d(m.target).closest("span, td, th, legend");if(n.is("."+this.icontype)){n=d(n).parent().closest("span, td, th, legend")}if(n.length===1){if(n.is(".disabled")){this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});return}switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var i=c.modes[this.viewMode].navStep*(n[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,i);break;case 1:this.viewDate=this.moveDate(this.viewDate,i);break;case 2:this.viewDate=this.moveMonth(this.viewDate,i);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,i);break}this.fill();this.element.trigger({type:n[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset();if(this.autoclose){this.hide()}break;case"today":var j=new Date();j=h(j.getFullYear(),j.getMonth(),j.getDate(),j.getHours(),j.getMinutes(),j.getSeconds(),0);if(jthis.endDate){j=this.endDate}}this.viewMode=this.startViewMode;this.showMode(0);this._setDate(j);this.fill();if(this.autoclose){this.hide()}break}break;case"span":if(!n.is(".disabled")){var p=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),q=this.viewDate.getUTCDate(),r=this.viewDate.getUTCHours(),k=this.viewDate.getUTCMinutes(),s=this.viewDate.getUTCSeconds();if(n.is(".month")){this.viewDate.setUTCDate(1);o=n.parent().find("span").index(n);q=this.viewDate.getUTCDate();this.viewDate.setUTCMonth(o);this.element.trigger({type:"changeMonth",date:this.viewDate});if(this.viewSelect>=3){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".year")){this.viewDate.setUTCDate(1);p=parseInt(n.text(),10)||0;this.viewDate.setUTCFullYear(p);this.element.trigger({type:"changeYear",date:this.viewDate});if(this.viewSelect>=4){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".hour")){r=parseInt(n.text(),10)||0;if(n.hasClass("hour_am")||n.hasClass("hour_pm")){if(r===12&&n.hasClass("hour_am")){r=0}else{if(r!==12&&n.hasClass("hour_pm")){r+=12}}}this.viewDate.setUTCHours(r);this.element.trigger({type:"changeHour",date:this.viewDate});if(this.viewSelect>=1){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".minute")){k=parseInt(n.text().substr(n.text().indexOf(":")+1),10)||0;this.viewDate.setUTCMinutes(k);this.element.trigger({type:"changeMinute",date:this.viewDate});if(this.viewSelect>=0){this._setDate(h(p,o,q,r,k,s,0))}}}}}if(this.viewMode!==0){var l=this.viewMode;this.showMode(-1);this.fill();if(l===this.viewMode&&this.autoclose){this.hide()}}else{this.fill();if(this.autoclose){this.hide()}}}break;case"td":if(n.is(".day")&&!n.is(".disabled")){var q=parseInt(n.text(),10)||1;var p=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r=this.viewDate.getUTCHours(),k=this.viewDate.getUTCMinutes(),s=this.viewDate.getUTCSeconds();if(n.is(".old")){if(o===0){o=11;p-=1}else{o-=1}}else{if(n.is(".new")){if(o===11){o=0;p+=1}else{o+=1}}}this.viewDate.setUTCFullYear(p);this.viewDate.setUTCMonth(o,q);this.element.trigger({type:"changeDay",date:this.viewDate});if(this.viewSelect>=2){this._setDate(h(p,o,q,r,k,s,0))}}var l=this.viewMode;this.showMode(-1);this.fill();if(l===this.viewMode&&this.autoclose){this.hide()}break}}},_setDate:function(i,k){if(!k||k==="date"){this.date=i}if(!k||k==="view"){this.viewDate=i}this.fill();this.setValue();var j;if(this.isInput){j=this.element}else{if(this.component){j=this.element.find("input")}}if(j){j.change()}this.element.trigger({type:"changeDate",date:this.getDate()});if(i===null){this.date=this.viewDate}},moveMinute:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCMinutes(k.getUTCMinutes()+(i*this.minuteStep));return k},moveHour:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCHours(k.getUTCHours()+i);return k},moveDate:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCDate(k.getUTCDate()+i);return k},moveMonth:function(j,k){if(!k){return j}var n=new Date(j.valueOf()),r=n.getUTCDate(),o=n.getUTCMonth(),m=Math.abs(k),q,p;k=k>0?1:-1;if(m===1){p=k===-1?function(){return n.getUTCMonth()===o}:function(){return n.getUTCMonth()!==q};q=o+k;n.setUTCMonth(q);if(q<0||q>11){q=(q+12)%12}}else{for(var l=0;l=this.startDate&&i<=this.endDate},keydown:function(o){if(this.picker.is(":not(:visible)")){if(o.keyCode===27){this.show()}return}var k=false,j,i,n;switch(o.keyCode){case 27:this.hide();o.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation){break}j=o.keyCode===37?-1:1;var m=this.viewMode;if(o.ctrlKey){m+=2}else{if(o.shiftKey){m+=1}}if(m===4){i=this.moveYear(this.date,j);n=this.moveYear(this.viewDate,j)}else{if(m===3){i=this.moveMonth(this.date,j);n=this.moveMonth(this.viewDate,j)}else{if(m===2){i=this.moveDate(this.date,j);n=this.moveDate(this.viewDate,j)}else{if(m===1){i=this.moveHour(this.date,j);n=this.moveHour(this.viewDate,j)}else{if(m===0){i=this.moveMinute(this.date,j);n=this.moveMinute(this.viewDate,j)}}}}}if(this.dateWithinRange(i)){this.date=i;this.viewDate=n;this.setValue();this.update();o.preventDefault();k=true}break;case 38:case 40:if(!this.keyboardNavigation){break}j=o.keyCode===38?-1:1;m=this.viewMode;if(o.ctrlKey){m+=2}else{if(o.shiftKey){m+=1}}if(m===4){i=this.moveYear(this.date,j);n=this.moveYear(this.viewDate,j)}else{if(m===3){i=this.moveMonth(this.date,j);n=this.moveMonth(this.viewDate,j)}else{if(m===2){i=this.moveDate(this.date,j*7);n=this.moveDate(this.viewDate,j*7)}else{if(m===1){if(this.showMeridian){i=this.moveHour(this.date,j*6);n=this.moveHour(this.viewDate,j*6)}else{i=this.moveHour(this.date,j*4);n=this.moveHour(this.viewDate,j*4)}}else{if(m===0){i=this.moveMinute(this.date,j*4);n=this.moveMinute(this.viewDate,j*4)}}}}}if(this.dateWithinRange(i)){this.date=i;this.viewDate=n;this.setValue();this.update();o.preventDefault();k=true}break;case 13:if(this.viewMode!==0){var p=this.viewMode;this.showMode(-1);this.fill();if(p===this.viewMode&&this.autoclose){this.hide()}}else{this.fill();if(this.autoclose){this.hide()}}o.preventDefault();break;case 9:this.hide();break}if(k){var l;if(this.isInput){l=this.element}else{if(this.component){l=this.element.find("input")}}if(l){l.change()}this.element.trigger({type:"changeDate",date:this.getDate()})}},showMode:function(i){if(i){var j=Math.max(0,Math.min(c.modes.length-1,this.viewMode+i));if(j>=this.minView&&j<=this.maxView){this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:j});this.viewMode=j}}this.picker.find(">div").hide().filter(".datetimepicker-"+c.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(i){switch(i){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var b=d.fn.datetimepicker;d.fn.datetimepicker=function(k){var i=Array.apply(null,arguments);i.shift();var j;this.each(function(){var n=d(this),m=n.data("datetimepicker"),l=typeof k==="object"&&k;if(!m){n.data("datetimepicker",(m=new g(this,d.extend({},d.fn.datetimepicker.defaults,l))))}if(typeof k==="string"&&typeof m[k]==="function"){j=m[k].apply(m,i);if(j!==f){return false}}});if(j!==f){return j}else{return this}};d.fn.datetimepicker.defaults={};d.fn.datetimepicker.Constructor=g;var e=d.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}};var c={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(i){return(((i%4===0)&&(i%100!==0))||(i%400===0))},getDaysInMonth:function(i,j){return[31,(c.isLeapYear(i)?29:28),31,30,31,30,31,31,30,31,30,31][j]},getDefaultFormat:function(i,j){if(i==="standard"){if(j==="input"){return"yyyy-mm-dd hh:ii"}else{return"yyyy-mm-dd hh:ii:ss"}}else{if(i==="php"){if(j==="input"){return"Y-m-d H:i"}else{return"Y-m-d H:i:s"}}else{throw new Error("Invalid format type.")}}},validParts:function(i){if(i==="standard"){return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g}else{if(i==="php"){return/[dDjlNwzFmMnStyYaABgGhHis]/g}else{throw new Error("Invalid format type.")}}},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(l,j){var i=l.replace(this.validParts(j),"\0").split("\0"),k=l.match(this.validParts(j));if(!i||!i.length||!k||k.length===0){throw new Error("Invalid date format.")}return{separators:i,parts:k}},parseDate:function(A,y,v,j,r){if(A instanceof Date){var u=new Date(A.valueOf()-A.getTimezoneOffset()*60000);u.setMilliseconds(0);return u}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(A)){y=this.parseFormat("yyyy-mm-dd",j)}if(/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(A)){y=this.parseFormat("yyyy-mm-dd hh:ii",j)}if(/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(A)){y=this.parseFormat("yyyy-mm-dd hh:ii:ss",j)}if(/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(A)){var l=/([-+]\d+)([dmwy])/,q=A.match(/([-+]\d+)([dmwy])/g),t,p;A=new Date();for(var x=0;x',headTemplateV3:' ',contTemplate:'',footTemplate:''};c.template='
'+c.headTemplate+c.contTemplate+c.footTemplate+'
'+c.headTemplate+c.contTemplate+c.footTemplate+'
'+c.headTemplate+""+c.footTemplate+'
'+c.headTemplate+c.contTemplate+c.footTemplate+'
'+c.headTemplate+c.contTemplate+c.footTemplate+"
";c.templateV3='
'+c.headTemplateV3+c.contTemplate+c.footTemplate+'
'+c.headTemplateV3+c.contTemplate+c.footTemplate+'
'+c.headTemplateV3+""+c.footTemplate+'
'+c.headTemplateV3+c.contTemplate+c.footTemplate+'
'+c.headTemplateV3+c.contTemplate+c.footTemplate+"
";d.fn.datetimepicker.DPGlobal=c;d.fn.datetimepicker.noConflict=function(){d.fn.datetimepicker=b;return this};d(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(j){var i=d(this);if(i.data("datetimepicker")){return}j.preventDefault();i.datetimepicker("show")});d(function(){d('[data-provide="datetimepicker-inline"]').datetimepicker()})})); (function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define(a):b.moment=a()}(this,(function(){var ca;function eB(){return ca.apply(null,arguments)}function aR(e3){ca=e3}function V(e3){return e3 instanceof Array||Object.prototype.toString.call(e3)==="[object Array]"}function v(e3){return e3!=null&&Object.prototype.toString.call(e3)==="[object Object]"}function ch(e4){if(Object.getOwnPropertyNames){return(Object.getOwnPropertyNames(e4).length===0)}else{var e3;for(e3 in e4){if(e4.hasOwnProperty(e3)){return false}}return true}}function F(e3){return e3===void 0}function q(e3){return typeof e3==="number"||Object.prototype.toString.call(e3)==="[object Number]"}function eu(e3){return e3 instanceof Date||Object.prototype.toString.call(e3)==="[object Date]"}function bn(e3,e6){var e5=[],e4;for(e4=0;e4>>0;for(var e5=0;e50){for(e3=0;e30?"future":"past"];return a6(e4)?e4(e3):e4.replace(/%s/i,e3)}var cK={};function ce(e5,e3){var e4=e5.toLowerCase();cK[e4]=cK[e4+"s"]=cK[e3]=e5}function cO(e3){return typeof e3==="string"?cK[e3]||cK[e3.toLowerCase()]:undefined}function dK(e5){var e4={},e3,e6;for(e6 in e5){if(dk(e5,e6)){e3=cO(e6);if(e3){e4[e3]=e5[e6]}}}return e4}var bs={};function dV(e4,e3){bs[e4]=e3}function bp(e3){var e4=[];for(var e5 in e3){e4.push({unit:e5,priority:bs[e5]})}e4.sort(function(e7,e6){return e7.priority-e6.priority});return e4}function co(e8,e7,e4){var e6=""+Math.abs(e8),e5=e7-e6.length,e3=e8>=0;return(e3?(e4?"+":""):"-")+Math.pow(10,Math.max(0,e5)).toString().substr(1)+e6}var bQ=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var bP=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var bO={};var a9={};function cx(e4,e5,e3,e7){var e6=e7;if(typeof e7==="string"){e6=function(){return this[e7]()}}if(e4){a9[e4]=e6}if(e5){a9[e5[0]]=function(){return co(e6.apply(this,arguments),e5[1],e5[2])}}if(e3){a9[e3]=function(){return this.localeData().ordinal(e6.apply(this,arguments),e4)}}}function aw(e3){if(e3.match(/\[[\s\S]/)){return e3.replace(/^\[|\]$/g,"")}return e3.replace(/\\/g,"")}function bx(e5){var e6=e5.match(bQ),e3,e4;for(e3=0,e4=e6.length;e3=0&&bP.test(e6)){e6=e6.replace(bP,e5);bP.lastIndex=0;e4-=1}return e6}var aK=/\d/;var aJ=/\d\d/;var aI=/\d{3}/;var aH=/\d{4}/;var aG=/[+-]?\d{6}/;var aq=/\d\d?/;var ck=/\d\d\d\d?/;var ed=/\d\d\d\d\d\d?/;var ap=/\d{1,3}/;var ao=/\d{1,4}/;var am=/[+-]?\d{1,6}/;var r=/\d+/;var B=/[+-]?\d+/;var bH=/Z|[+-]\d\d:?\d\d/gi;var cE=/Z|[+-]\d\d(?::?\d\d)?/gi;var eP=/[+-]?\d+(\.\d{1,3})?/;var a8=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;var a3={};function bd(e3,e4,e5){a3[e3]=a6(e4)?e4:function(e7,e6){return(e7&&e5)?e5:e4}}function bE(e4,e3){if(!dk(a3,e4)){return new RegExp(di(e4))}return a3[e4](e3._strict,e3._locale)}function di(e3){return cg(e3.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e4,e8,e7,e6,e5){return e8||e7||e6||e5}))}function cg(e3){return e3.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var g={};function bU(e4,e6){var e3,e5=e6;if(typeof e4==="string"){e4=[e4]}if(q(e6)){e5=function(e7,e8){e8[e6]=cP(e7)}}for(e3=0;e368?1900:2000)};var cG=eb("FullYear",true);function cV(){return dZ(this.year())}function eb(e3,e4){return function(e5){if(e5!=null){aM(this,e3,e5);eB.updateOffset(this,e4);return this}else{return dA(this,e3)}}}function dA(e4,e3){return e4.isValid()?e4._d["get"+(e4._isUTC?"UTC":"")+e3]():NaN}function aM(e4,e3,e5){if(e4.isValid()&&!isNaN(e5)){if(e3==="FullYear"&&dZ(e4.year())&&e4.month()===1&&e4.date()===29){e4._d["set"+(e4._isUTC?"UTC":"")+e3](e5,e4.month(),bG(e5,e4.month()))}else{e4._d["set"+(e4._isUTC?"UTC":"")+e3](e5)}}}function az(e3){e3=cO(e3);if(a6(this[e3])){return this[e3]()}return this}function at(e3,e6){if(typeof e3==="object"){e3=dK(e3);var e5=bp(e3);for(var e4=0;e4=0&&isFinite(e4.getFullYear())){e4.setFullYear(fa)}return e4}function du(e4){var e3=new Date(Date.UTC.apply(null,arguments));if(e4<100&&e4>=0&&isFinite(e3.getUTCFullYear())){e3.setUTCFullYear(e4)}return e3}function bi(e4,e7,e6){var e3=7+e7-e6,e5=(7+du(e4,0,e3).getUTCDay()-e7)%7;return -e5+e3-1}function bA(e6,e4,e5,fc,fa){var fb=(7+e5-fc)%7,e3=bi(e6,fc,fa),e8=1+7*(e4-1)+fb+e3,e9,e7;if(e8<=0){e9=e6-1;e7=dF(e9)+e8}else{if(e8>dF(e6)){e9=e6+1;e7=e8-dF(e6)}else{e9=e6;e7=e8}}return{year:e9,dayOfYear:e7}}function eq(e7,e9,e8){var e5=bi(e7.year(),e9,e8),e6=Math.floor((e7.dayOfYear()-e5-1)/7)+1,e3,e4;if(e6<1){e4=e7.year()-1;e3=e6+E(e4,e9,e8)}else{if(e6>E(e7.year(),e9,e8)){e3=e6-E(e7.year(),e9,e8);e4=e7.year()+1}else{e4=e7.year();e3=e6}}return{week:e3,year:e4}}function E(e4,e7,e5){var e3=bi(e4,e7,e5),e6=bi(e4+1,e7,e5);return(dF(e4)-e3+e6)/7}cx("w",["ww",2],"wo","week");cx("W",["WW",2],"Wo","isoWeek");ce("week","w");ce("isoWeek","W");dV("week",5);dV("isoWeek",5);bd("w",aq);bd("ww",aq,aJ);bd("W",aq);bd("WW",aq,aJ);X(["w","ww","W","WW"],function(e3,e6,e4,e5){e6[e5.substr(0,1)]=cP(e3)});function bo(e3){return eq(e3,this._week.dow,this._week.doy).week}var b2={dow:0,doy:6};function ag(){return this._week.dow}function c8(){return this._week.doy}function J(e3){var e4=this.localeData().week(this);return e3==null?e4:this.add((e3-e4)*7,"d")}function x(e3){var e4=eq(this,1,4).week;return e3==null?e4:this.add((e3-e4)*7,"d")}cx("d",0,"do","day");cx("dd",0,0,function(e3){return this.localeData().weekdaysMin(this,e3)});cx("ddd",0,0,function(e3){return this.localeData().weekdaysShort(this,e3)});cx("dddd",0,0,function(e3){return this.localeData().weekdays(this,e3)});cx("e",0,0,"weekday");cx("E",0,0,"isoWeekday");ce("day","d");ce("weekday","e");ce("isoWeekday","E");dV("day",11);dV("weekday",11);dV("isoWeekday",11);bd("d",aq);bd("e",aq);bd("E",aq);bd("dd",function(e4,e3){return e3.weekdaysMinRegex(e4)});bd("ddd",function(e4,e3){return e3.weekdaysShortRegex(e4)});bd("dddd",function(e4,e3){return e3.weekdaysRegex(e4)});X(["dd","ddd","dddd"],function(e3,e6,e4,e5){var e7=e4._locale.weekdaysParse(e3,e5,e4._strict);if(e7!=null){e6.d=e7}else{bb(e4).invalidWeekday=e3}});X(["d","e","E"],function(e3,e6,e4,e5){e6[e5]=cP(e3)});function bh(e4,e3){if(typeof e4!=="string"){return e4}if(!isNaN(e4)){return parseInt(e4,10)}e4=e3.weekdaysParse(e4);if(typeof e4==="number"){return e4}return null}function bD(e4,e3){if(typeof e4==="string"){return e3.weekdaysParse(e4)%7||7}return isNaN(e4)?null:e4}var S="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function ax(e3,e4){if(!e3){return V(this._weekdays)?this._weekdays:this._weekdays.standalone}return V(this._weekdays)?this._weekdays[e3.day()]:this._weekdays[this._weekdays.isFormat.test(e4)?"format":"standalone"][e3.day()]}var k="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function M(e3){return(e3)?this._weekdaysShort[e3.day()]:this._weekdaysShort}var bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function eC(e3){return(e3)?this._weekdaysMin[e3.day()]:this._weekdaysMin}function dM(e8,e9,e3){var e5,e6,e7,e4=e8.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(e5=0;e5<7;++e5){e7=cv([2000,1]).day(e5);this._minWeekdaysParse[e5]=this.weekdaysMin(e7,"").toLocaleLowerCase();this._shortWeekdaysParse[e5]=this.weekdaysShort(e7,"").toLocaleLowerCase();this._weekdaysParse[e5]=this.weekdays(e7,"").toLocaleLowerCase()}}if(e3){if(e9==="dddd"){e6=cQ.call(this._weekdaysParse,e4);return e6!==-1?e6:null}else{if(e9==="ddd"){e6=cQ.call(this._shortWeekdaysParse,e4);return e6!==-1?e6:null}else{e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}}}else{if(e9==="dddd"){e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._shortWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}else{if(e9==="ddd"){e6=cQ.call(this._shortWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}else{e6=cQ.call(this._minWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._shortWeekdaysParse,e4);return e6!==-1?e6:null}}}}function bL(e7,e8,e3){var e4,e6,e5;if(this._weekdaysParseExact){return dM.call(this,e7,e8,e3)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(e4=0;e4<7;e4++){e6=cv([2000,1]).day(e4);if(e3&&!this._fullWeekdaysParse[e4]){this._fullWeekdaysParse[e4]=new RegExp("^"+this.weekdays(e6,"").replace(".",".?")+"$","i");this._shortWeekdaysParse[e4]=new RegExp("^"+this.weekdaysShort(e6,"").replace(".",".?")+"$","i");this._minWeekdaysParse[e4]=new RegExp("^"+this.weekdaysMin(e6,"").replace(".",".?")+"$","i")}if(!this._weekdaysParse[e4]){e5="^"+this.weekdays(e6,"")+"|^"+this.weekdaysShort(e6,"")+"|^"+this.weekdaysMin(e6,"");this._weekdaysParse[e4]=new RegExp(e5.replace(".",""),"i")}if(e3&&e8==="dddd"&&this._fullWeekdaysParse[e4].test(e7)){return e4}else{if(e3&&e8==="ddd"&&this._shortWeekdaysParse[e4].test(e7)){return e4}else{if(e3&&e8==="dd"&&this._minWeekdaysParse[e4].test(e7)){return e4}else{if(!e3&&this._weekdaysParse[e4].test(e7)){return e4}}}}}}function ei(e4){if(!this.isValid()){return e4!=null?this:NaN}var e3=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e4!=null){e4=bh(e4,this.localeData());return this.add(e4-e3,"d")}else{return e3}}function ad(e3){if(!this.isValid()){return e3!=null?this:NaN}var e4=(this.day()+7-this.localeData()._week.dow)%7;return e3==null?e4:this.add(e3-e4,"d")}function ct(e3){if(!this.isValid()){return e3!=null?this:NaN}if(e3!=null){var e4=bD(e3,this.localeData());return this.day(this.day()%7?e4:e4-7)}else{return this.day()||7}}var ab=a8;function eS(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!dk(this,"_weekdaysRegex")){this._weekdaysRegex=ab}return this._weekdaysStrictRegex&&e3?this._weekdaysStrictRegex:this._weekdaysRegex}}var w=a8;function aF(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!dk(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=w}return this._weekdaysShortStrictRegex&&e3?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var dT=a8;function D(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!dk(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=dT}return this._weekdaysMinStrictRegex&&e3?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function z(){function e6(fe,fd){return fd.length-fe.length}var e8=[],e9=[],fc=[],e3=[],e7,e5,e4,fa,fb;for(e7=0;e7<7;e7++){e5=cv([2000,1]).day(e7);e4=this.weekdaysMin(e5,"");fa=this.weekdaysShort(e5,"");fb=this.weekdays(e5,"");e8.push(e4);e9.push(fa);fc.push(fb);e3.push(e4);e3.push(fa);e3.push(fb)}e8.sort(e6);e9.sort(e6);fc.sort(e6);e3.sort(e6);for(e7=0;e7<7;e7++){e9[e7]=cg(e9[e7]);fc[e7]=cg(fc[e7]);e3[e7]=cg(e3[e7])}this._weekdaysRegex=new RegExp("^("+e3.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+fc.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+e9.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e8.join("|")+")","i")}function dy(){return this.hours()%12||12}function O(){return this.hours()||24}cx("H",["HH",2],0,"hour");cx("h",["hh",2],0,dy);cx("k",["kk",2],0,O);cx("hmm",0,0,function(){return""+dy.apply(this)+co(this.minutes(),2)});cx("hmmss",0,0,function(){return""+dy.apply(this)+co(this.minutes(),2)+co(this.seconds(),2)});cx("Hmm",0,0,function(){return""+this.hours()+co(this.minutes(),2)});cx("Hmmss",0,0,function(){return""+this.hours()+co(this.minutes(),2)+co(this.seconds(),2)});function el(e3,e4){cx(e3,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e4)})}el("a",true);el("A",false);ce("hour","h");dV("hour",13);function R(e4,e3){return e3._meridiemParse}bd("a",R);bd("A",R);bd("H",aq);bd("h",aq);bd("k",aq);bd("HH",aq,aJ);bd("hh",aq,aJ);bd("kk",aq,aJ);bd("hmm",ck);bd("hmmss",ed);bd("Hmm",ck);bd("Hmmss",ed);bU(["H","HH"],eF);bU(["k","kk"],function(e4,e6,e5){var e3=cP(e4);e6[eF]=e3===24?0:e3});bU(["a","A"],function(e3,e5,e4){e4._isPm=e4._locale.isPM(e3);e4._meridiem=e3});bU(["h","hh"],function(e3,e5,e4){e5[eF]=cP(e3);bb(e4).bigHour=true});bU("hmm",function(e3,e6,e4){var e5=e3.length-2;e6[eF]=cP(e3.substr(0,e5));e6[dH]=cP(e3.substr(e5));bb(e4).bigHour=true});bU("hmmss",function(e3,e7,e4){var e6=e3.length-4;var e5=e3.length-2;e7[eF]=cP(e3.substr(0,e6));e7[dH]=cP(e3.substr(e6,2));e7[ai]=cP(e3.substr(e5));bb(e4).bigHour=true});bU("Hmm",function(e3,e6,e4){var e5=e3.length-2;e6[eF]=cP(e3.substr(0,e5));e6[dH]=cP(e3.substr(e5))});bU("Hmmss",function(e3,e7,e4){var e6=e3.length-4;var e5=e3.length-2;e7[eF]=cP(e3.substr(0,e6));e7[dH]=cP(e3.substr(e6,2));e7[ai]=cP(e3.substr(e5))});function cd(e3){return((e3+"").toLowerCase().charAt(0)==="p")}var b5=/[ap]\.?m?\.?/i;function aT(e3,e4,e5){if(e3>11){return e5?"pm":"PM"}else{return e5?"am":"AM"}}var cp=eb("Hours",true);var b1={calendar:cj,longDateFormat:dW,invalidDate:al,ordinal:b6,dayOfMonthOrdinalParse:e1,relativeTime:ey,months:P,monthsShort:d0,week:b2,weekdays:S,weekdaysMin:bt,weekdaysShort:k,meridiemParse:b5};var by={};var l={};var cX;function dn(e3){return e3?e3.toLowerCase().replace("_","-"):e3}function cW(e8){var e6=0,e4,e7,e3,e5;while(e60){e3=aB(e5.slice(0,e4).join("-"));if(e3){return e3}if(e7&&e7.length>=e4&&bZ(e5,e7,true)>=e4-1){break}e4--}e6++}return null}function aB(e3){var e6=null;if(!by[e3]&&(typeof module!=="undefined")&&module&&module.exports){try{e6=cX._abbr;var e4=require;e4("./locale/"+e3);A(e6)}catch(e5){}}return by[e3]}function A(e4,e3){var e5;if(e4){if(F(e3)){e5=Q(e4)}else{e5=cA(e4,e3)}if(e5){cX=e5}}return cX._abbr}function cA(e4,e3){if(e3!==null){var e5=b1;e3.abbr=e4;if(by[e4]!=null){eO("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");e5=by[e4]._config}else{if(e3.parentLocale!=null){if(by[e3.parentLocale]!=null){e5=by[e3.parentLocale]._config}else{if(!l[e3.parentLocale]){l[e3.parentLocale]=[]}l[e3.parentLocale].push({name:e4,config:e3});return null}}}by[e4]=new cC(d6(e5,e3));if(l[e4]){l[e4].forEach(function(e6){cA(e6.name,e6.config)})}A(e4);return by[e4]}else{delete by[e4];return null}}function ej(e5,e4){if(e4!=null){var e3,e7,e6=b1;e7=aB(e5);if(e7!=null){e6=e7._config}e4=d6(e6,e4);e3=new cC(e4);e3.parentLocale=by[e5];by[e5]=e3;A(e5)}else{if(by[e5]!=null){if(by[e5].parentLocale!=null){by[e5]=by[e5].parentLocale}else{if(by[e5]!=null){delete by[e5]}}}}return by[e5]}function Q(e4){var e3;if(e4&&e4._locale&&e4._locale._abbr){e4=e4._locale._abbr}if(!e4){return cX}if(!V(e4)){e3=aB(e4);if(e3){return e3}e4=[e4]}return cW(e4)}function b4(){return bW(by)}function cN(e3){var e5;var e4=e3._a;if(e4&&bb(e3).overflow===-2){e5=e4[i]<0||e4[i]>11?i:e4[es]<1||e4[es]>bG(e4[eQ],e4[i])?es:e4[eF]<0||e4[eF]>24||(e4[eF]===24&&(e4[dH]!==0||e4[ai]!==0||e4[bJ]!==0))?eF:e4[dH]<0||e4[dH]>59?dH:e4[ai]<0||e4[ai]>59?ai:e4[bJ]<0||e4[bJ]>999?bJ:-1;if(bb(e3)._overflowDayOfYear&&(e5es)){e5=es}if(bb(e3)._overflowWeeks&&e5===-1){e5=ci}if(bb(e3)._overflowWeekday&&e5===-1){e5=h}bb(e3).overflow=e5}return e3}function d8(e4,e3,e5){if(e4!=null){return e4}if(e3!=null){return e3}return e5}function a2(e4){var e3=new Date(eB.now());if(e4._useUTC){return[e3.getUTCFullYear(),e3.getUTCMonth(),e3.getUTCDate()]}return[e3.getFullYear(),e3.getMonth(),e3.getDate()]}function e(e7){var e8,e6,e5=[],e4,e9,e3;if(e7._d){return}e4=a2(e7);if(e7._w&&e7._a[es]==null&&e7._a[i]==null){c1(e7)}if(e7._dayOfYear!=null){e3=d8(e7._a[eQ],e4[eQ]);if(e7._dayOfYear>dF(e3)||e7._dayOfYear===0){bb(e7)._overflowDayOfYear=true}e6=du(e3,0,e7._dayOfYear);e7._a[i]=e6.getUTCMonth();e7._a[es]=e6.getUTCDate()}for(e8=0;e8<3&&e7._a[e8]==null;++e8){e7._a[e8]=e5[e8]=e4[e8]}for(;e8<7;e8++){e7._a[e8]=e5[e8]=(e7._a[e8]==null)?(e8===2?1:0):e7._a[e8]}if(e7._a[eF]===24&&e7._a[dH]===0&&e7._a[ai]===0&&e7._a[bJ]===0){e7._nextDay=true;e7._a[eF]=0}e7._d=(e7._useUTC?du:d7).apply(null,e5);e9=e7._useUTC?e7._d.getUTCDay():e7._d.getDay();if(e7._tzm!=null){e7._d.setUTCMinutes(e7._d.getUTCMinutes()-e7._tzm)}if(e7._nextDay){e7._a[eF]=24}if(e7._w&&typeof e7._w.d!=="undefined"&&e7._w.d!==e9){bb(e7).weekdayMismatch=true}}function c1(e6){var e9,e3,e4,e7,fc,fa,fb,e8;e9=e6._w;if(e9.GG!=null||e9.W!=null||e9.E!=null){fc=1;fa=4;e3=d8(e9.GG,e6._a[eQ],eq(dB(),1,4).year);e4=d8(e9.W,1);e7=d8(e9.E,1);if(e7<1||e7>7){e8=true}}else{fc=e6._locale._week.dow;fa=e6._locale._week.doy;var e5=eq(dB(),fc,fa);e3=d8(e9.gg,e6._a[eQ],e5.year);e4=d8(e9.w,e5.week);if(e9.d!=null){e7=e9.d;if(e7<0||e7>6){e8=true}}else{if(e9.e!=null){e7=e9.e+fc;if(e9.e<0||e9.e>6){e8=true}}else{e7=fc}}}if(e4<1||e4>E(e3,fc,fa)){bb(e6)._overflowWeeks=true}else{if(e8!=null){bb(e6)._overflowWeekday=true}else{fb=bA(e3,e4,e7,fc,fa);e6._a[eQ]=fb.year;e6._dayOfYear=fb.dayOfYear}}}var j=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;var aS=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;var cF=/Z|[+-]\d\d(?::?\d\d)?/;var cR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/]];var cq=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]];var bV=/^\/?Date\((\-?\d+)/i;function C(e4){var e8,e6,fa=e4._i,e9=j.exec(fa)||aS.exec(fa),fb,e3,e7,e5;if(e9){bb(e4).iso=true;for(e8=0,e6=cR.length;e80){bb(e5).unusedInput.push(fa)}e8=e8.slice(e8.indexOf(e4)+e4.length);e9+=e4.length}if(a9[e6]){if(e4){bb(e5).empty=false}else{bb(e5).unusedTokens.push(e6)}u(e6,e4,e5)}else{if(e5._strict&&!e4){bb(e5).unusedTokens.push(e6)}}}bb(e5).charsLeftOver=e3-e9;if(e8.length>0){bb(e5).unusedInput.push(e8)}if(e5._a[eF]<=12&&bb(e5).bigHour===true&&e5._a[eF]>0){bb(e5).bigHour=undefined}bb(e5).parsedDateParts=e5._a.slice(0);bb(e5).meridiem=e5._meridiem;e5._a[eF]=ef(e5._locale,e5._a[eF],e5._meridiem);e(e5);cN(e5)}function ef(e3,e5,e6){var e4;if(e6==null){return e5}if(e3.meridiemHour!=null){return e3.meridiemHour(e5,e6)}else{if(e3.isPM!=null){e4=e3.isPM(e6);if(e4&&e5<12){e5+=12}if(!e4&&e5===12){e5=0}return e5}else{return e5}}}function dD(e3){var e7,e5,e6,e4,e8;if(e3._f.length===0){bb(e3).invalidFormat=true;e3._d=new Date(NaN);return}for(e4=0;e4this?this:e3}else{return N()}});function eX(e5,e6){var e4,e3;if(e6.length===1&&V(e6[0])){e6=e6[0]}if(!e6.length){return dB()}e4=e6[0];for(e3=1;e3this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset())}function b(){if(!F(this._isDSTShifted)){return this._isDSTShifted}var e4={};p(e4,this);e4=br(e4);if(e4._a){var e3=e4._isUTC?cv(e4._a):dB(e4._a);this._isDSTShifted=this.isValid()&&bZ(e4._a,e3.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function dw(){return this.isValid()?!this._isUTC:false}function bR(){return this.isValid()?this._isUTC:false}function dC(){return this.isValid()?this._isUTC&&this._offset===0:false}var Z=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;var cw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function de(e5,e8){var e9=e5,e7=null,e4,e6,e3;if(ae(e5)){e9={ms:e5._milliseconds,d:e5._days,M:e5._months}}else{if(q(e5)){e9={};if(e8){e9[e8]=e5}else{e9.milliseconds=e5}}else{if(!!(e7=Z.exec(e5))){e4=(e7[1]==="-")?-1:1;e9={y:0,d:cP(e7[es])*e4,h:cP(e7[eF])*e4,m:cP(e7[dH])*e4,s:cP(e7[ai])*e4,ms:cP(eh(e7[bJ]*1000))*e4}}else{if(!!(e7=cw.exec(e5))){e4=(e7[1]==="-")?-1:(e7[1]==="+")?1:1;e9={y:eR(e7[2],e4),M:eR(e7[3],e4),w:eR(e7[4],e4),d:eR(e7[5],e4),h:eR(e7[6],e4),m:eR(e7[7],e4),s:eR(e7[8],e4)}}else{if(e9==null){e9={}}else{if(typeof e9==="object"&&("from" in e9||"to" in e9)){e3=bN(dB(e9.from),dB(e9.to));e9={};e9.ms=e3.milliseconds;e9.M=e3.months}}}}}}e6=new dN(e9);if(ae(e5)&&dk(e5,"_locale")){e6._locale=e5._locale}return e6}de.fn=dN.prototype;de.invalid=aW;function eR(e5,e3){var e4=e5&&parseFloat(e5.replace(",","."));return(isNaN(e4)?0:e4)*e3}function dz(e5,e3){var e4={milliseconds:0,months:0};e4.months=e3.month()-e5.month()+(e3.year()-e5.year())*12;if(e5.clone().add(e4.months,"M").isAfter(e3)){--e4.months}e4.milliseconds=+e3-+(e5.clone().add(e4.months,"M"));return e4}function bN(e5,e3){var e4;if(!(e5.isValid()&&e3.isValid())){return{milliseconds:0,months:0}}e3=aC(e3,e5);if(e5.isBefore(e3)){e4=dz(e5,e3)}else{e4=dz(e3,e5);e4.milliseconds=-e4.milliseconds;e4.months=-e4.months}return e4}function a5(e4,e3){return function(e8,e7){var e6,e5;if(e7!==null&&!isNaN(+e7)){eO(e3,"moment()."+e3+"(period, number) is deprecated. Please use moment()."+e3+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");e5=e8;e8=e7;e7=e5}e8=typeof e8==="string"?+e8:e8;e6=de(e8,e7);aZ(this,e6,e4);return this}}function aZ(e5,e8,e7,e6){var e4=e8._milliseconds,e9=eh(e8._days),e3=eh(e8._months);if(!e5.isValid()){return}e6=e6==null?true:e6;if(e3){aV(e5,dA(e5,"Month")+e3*e7)}if(e9){aM(e5,"Date",dA(e5,"Date")+e9*e7)}if(e4){e5._d.setTime(e5._d.valueOf()+e4*e7)}if(e6){eB.updateOffset(e5,e9||e3)}}var aY=a5(1,"add");var ay=a5(-1,"subtract");function au(e5,e3){var e4=e5.diff(e3,"days",true);return e4<-6?"sameElse":e4<-1?"lastWeek":e4<0?"lastDay":e4<1?"sameDay":e4<2?"nextDay":e4<7?"nextWeek":"sameElse"}function cf(e8,e3){var e6=e8||dB(),e5=aC(e6,this).startOf("day"),e7=eB.calendarFormat(this,e5)||"sameElse";var e4=e3&&(a6(e3[e7])?e3[e7].call(this,e6):e3[e7]);return this.format(e4||this.localeData().calendar(e7,this,dB(e6)))}function dr(){return new ep(this)}function cD(e4,e3){var e5=cb(e4)?e4:dB(e4);if(!(this.isValid()&&e5.isValid())){return false}e3=cO(!F(e3)?e3:"millisecond");if(e3==="millisecond"){return this.valueOf()>e5.valueOf()}else{return e5.valueOf()9999){return af(e3,e4?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(a6(Date.prototype.toISOString)){if(e4){return this.toDate().toISOString()}else{return new Date(this._d.valueOf()).toISOString().replace("Z",af(e3,"Z"))}}return af(e3,e4?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function aQ(){if(!this.isValid()){return"moment.invalid()"}var e5="moment";var e3="";if(!this.isLocal()){e5=this.utcOffset()===0?"moment.utc":"moment.parseZone";e3="Z"}var e6="["+e5+'("]';var e4=(0<=this.year()&&this.year()<=9999)?"YYYY":"YYYYYY";var e8="-MM-DD[T]HH:mm:ss.SSS";var e7=e3+'[")]';return this.format(e6+e4+e8+e7)}function c6(e4){if(!e4){e4=this.isUtc()?eB.defaultFormatUtc:eB.defaultFormat}var e3=af(this,e4);return this.localeData().postformat(e3)}function dQ(e4,e3){if(this.isValid()&&((cb(e4)&&e4.isValid())||dB(e4).isValid())){return de({to:this,from:e4}).locale(this.locale()).humanize(!e3)}else{return this.localeData().invalidDate()}}function dL(e3){return this.from(dB(),e3)}function ah(e4,e3){if(this.isValid()&&((cb(e4)&&e4.isValid())||dB(e4).isValid())){return de({from:this,to:e4}).locale(this.locale()).humanize(!e3)}else{return this.localeData().invalidDate()}}function aP(e3){return this.to(dB(),e3)}function e2(e4){var e3;if(e4===undefined){return this._locale._abbr}else{e3=Q(e4);if(e3!=null){this._locale=e3}return this}}var y=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e3){if(e3===undefined){return this.localeData()}else{return this.locale(e3)}});function dR(){return this._locale}function b7(e3){e3=cO(e3);switch(e3){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}if(e3==="week"){this.weekday(0)}if(e3==="isoWeek"){this.isoWeekday(1)}if(e3==="quarter"){this.month(Math.floor(this.month()/3)*3)}return this}function ev(e3){e3=cO(e3);if(e3===undefined||e3==="millisecond"){return this}if(e3==="date"){e3="day"}return this.startOf(e3).add(1,(e3==="isoWeek"?"week":e3)).subtract(1,"ms")}function dU(){return this._d.valueOf()-((this._offset||0)*60000)}function bz(){return Math.floor(this.valueOf()/1000)}function c0(){return new Date(this.valueOf())}function dJ(){var e3=this;return[e3.year(),e3.month(),e3.date(),e3.hour(),e3.minute(),e3.second(),e3.millisecond()]}function dS(){var e3=this;return{years:e3.year(),months:e3.month(),date:e3.date(),hours:e3.hours(),minutes:e3.minutes(),seconds:e3.seconds(),milliseconds:e3.milliseconds()}}function c7(){return this.isValid()?this.toISOString():null}function o(){return an(this)}function dE(){return eW({},bb(this))}function cz(){return bb(this).overflow}function eN(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}cx(0,["gg",2],0,function(){return this.weekYear()%100});cx(0,["GG",2],0,function(){return this.isoWeekYear()%100});function W(e4,e3){cx(0,[e4,e4.length],0,e3)}W("gggg","weekYear");W("ggggg","weekYear");W("GGGG","isoWeekYear");W("GGGGG","isoWeekYear");ce("weekYear","gg");ce("isoWeekYear","GG");dV("weekYear",1);dV("isoWeekYear",1);bd("G",B);bd("g",B);bd("GG",aq,aJ);bd("gg",aq,aJ);bd("GGGG",ao,aH);bd("gggg",ao,aH);bd("GGGGG",am,aG);bd("ggggg",am,aG);X(["gggg","ggggg","GGGG","GGGGG"],function(e3,e6,e4,e5){e6[e5.substr(0,2)]=cP(e3)});X(["gg","GG"],function(e3,e6,e4,e5){e6[e5]=eB.parseTwoDigitYear(e3)});function bq(e3){return cs.call(this,e3,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function dY(e3){return cs.call(this,e3,this.isoWeek(),this.isoWeekday(),1,4)}function c9(){return E(this.year(),1,4)}function I(){var e3=this.localeData()._week;return E(this.year(),e3.dow,e3.doy)}function cs(e3,e4,e6,e8,e7){var e5;if(e3==null){return eq(this,e8,e7).year}else{e5=E(e3,e8,e7);if(e4>e5){e4=e5}return a7.call(this,e3,e4,e6,e8,e7)}}function a7(e5,e4,e7,e9,e8){var e6=bA(e5,e4,e7,e9,e8),e3=du(e6.year,0,e6.dayOfYear);this.year(e3.getUTCFullYear());this.month(e3.getUTCMonth());this.date(e3.getUTCDate());return this}cx("Q",0,"Qo","quarter");ce("quarter","Q");dV("quarter",7);bd("Q",aK);bU("Q",function(e3,e4){e4[i]=(cP(e3)-1)*3});function b0(e3){return e3==null?Math.ceil((this.month()+1)/3):this.month((e3-1)*3+this.month()%3)}cx("D",["DD",2],"Do","date");ce("date","D");dV("date",9);bd("D",aq);bd("DD",aq,aJ);bd("Do",function(e4,e3){return e4?(e3._dayOfMonthOrdinalParse||e3._ordinalParse):e3._dayOfMonthOrdinalParseLenient});bU(["D","DD"],es);bU("Do",function(e3,e4){e4[es]=cP(e3.match(aq)[0])});var cm=eb("Date",true);cx("DDD",["DDDD",3],"DDDo","dayOfYear");ce("dayOfYear","DDD");dV("dayOfYear",4);bd("DDD",ap);bd("DDDD",aI);bU(["DDD","DDDD"],function(e3,e5,e4){e4._dayOfYear=cP(e3)});function bf(e3){var e4=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/86400000)+1;return e3==null?e4:this.add((e3-e4),"d")}cx("m",["mm",2],0,"minute");ce("minute","m");dV("minute",14);bd("m",aq);bd("mm",aq,aJ);bU(["m","mm"],dH);var eL=eb("Minutes",false);cx("s",["ss",2],0,"second");ce("second","s");dV("second",15);bd("s",aq);bd("ss",aq,aJ);bU(["s","ss"],ai);var bv=eb("Seconds",false);cx("S",0,0,function(){return ~~(this.millisecond()/100)});cx(0,["SS",2],0,function(){return ~~(this.millisecond()/10)});cx(0,["SSS",3],0,"millisecond");cx(0,["SSSS",4],0,function(){return this.millisecond()*10});cx(0,["SSSSS",5],0,function(){return this.millisecond()*100});cx(0,["SSSSSS",6],0,function(){return this.millisecond()*1000});cx(0,["SSSSSSS",7],0,function(){return this.millisecond()*10000});cx(0,["SSSSSSSS",8],0,function(){return this.millisecond()*100000});cx(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1000000});ce("millisecond","ms");dV("millisecond",16);bd("S",ap,aK);bd("SS",ap,aJ);bd("SSS",ap,aI);var bk;for(bk="SSSS";bk.length<=9;bk+="S"){bd(bk,r)}function c4(e3,e4){e4[bJ]=cP(("0."+e3)*1000)}for(bk="S";bk.length<=9;bk+="S"){bU(bk,c4)}var bY=eb("Milliseconds",false);cx("z",0,0,"zoneAbbr");cx("zz",0,0,"zoneName");function eI(){return this._isUTC?"UTC":""}function eg(){return this._isUTC?"Coordinated Universal Time":""}var cc=ep.prototype;cc.add=aY;cc.calendar=cf;cc.clone=dr;cc.diff=K;cc.endOf=ev;cc.format=c6;cc.from=dQ;cc.fromNow=dL;cc.to=ah;cc.toNow=aP;cc.get=az;cc.invalidAt=cz;cc.isAfter=cD;cc.isBefore=eM;cc.isBetween=eo;cc.isSame=cH;cc.isSameOrAfter=eH;cc.isSameOrBefore=eK;cc.isValid=o;cc.lang=y;cc.locale=e2;cc.localeData=dR;cc.max=em;cc.min=cI;cc.parsingFlags=dE;cc.set=at;cc.startOf=b7;cc.subtract=ay;cc.toArray=dJ;cc.toObject=dS;cc.toDate=c0;cc.toISOString=c3;cc.inspect=aQ;cc.toJSON=c7;cc.toString=d1;cc.unix=bz;cc.valueOf=dU;cc.creationData=eN;cc.year=cG;cc.isLeapYear=cV;cc.weekYear=bq;cc.isoWeekYear=dY;cc.quarter=cc.quarters=b0;cc.month=eE;cc.daysInMonth=bM;cc.week=cc.weeks=J;cc.isoWeek=cc.isoWeeks=x;cc.weeksInYear=I;cc.isoWeeksInYear=c9;cc.date=cm;cc.day=cc.days=ei;cc.weekday=ad;cc.isoWeekday=ct;cc.dayOfYear=bf;cc.hour=cc.hours=cp;cc.minute=cc.minutes=eL;cc.second=cc.seconds=bv;cc.millisecond=cc.milliseconds=bY;cc.utcOffset=dv;cc.utc=a0;cc.local=ds;cc.parseZone=b8;cc.hasAlignedHourOffset=aA;cc.isDST=aN;cc.isLocal=dw;cc.isUtcOffset=bR;cc.isUtc=dC;cc.isUTC=dC;cc.zoneAbbr=eI;cc.zoneName=eg;cc.dates=ee("dates accessor is deprecated. Use date instead.",cm);cc.months=ee("months accessor is deprecated. Use month instead",eE);cc.years=ee("years accessor is deprecated. Use year instead",cG);cc.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dq);cc.isDSTShifted=ee("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",b);function db(e3){return dB(e3*1000)}function cM(){return dB.apply(null,arguments).parseZone()}function dx(e3){return e3}var d3=cC.prototype;d3.calendar=d;d3.longDateFormat=cJ;d3.invalidDate=en;d3.ordinal=ez;d3.preparse=dx;d3.postformat=dx;d3.relativeTime=T;d3.pastFuture=dX;d3.set=dm;d3.months=a1;d3.monthsShort=ba;d3.monthsParse=da;d3.monthsRegex=cY;d3.monthsShortRegex=dj;d3.week=bo;d3.firstDayOfYear=c8;d3.firstDayOfWeek=ag;d3.weekdays=ax;d3.weekdaysMin=eC;d3.weekdaysShort=M;d3.weekdaysParse=bL;d3.weekdaysRegex=eS;d3.weekdaysShortRegex=aF;d3.weekdaysMinRegex=D;d3.isPM=cd;d3.meridiem=aT;function H(e7,e4,e6,e8){var e3=Q();var e5=cv().set(e8,e4);return e3[e6](e5,e7)}function aX(e7,e4,e6){if(q(e7)){e4=e7;e7=undefined}e7=e7||"";if(e4!=null){return H(e7,e4,e6,"month")}var e5;var e3=[];for(e5=0;e5<12;e5++){e3[e5]=H(e7,e5,e6,"month")}return e3}function eU(e8,fa,e6,e9){if(typeof e8==="boolean"){if(q(fa)){e6=fa;fa=undefined}fa=fa||""}else{fa=e8;e6=fa;e8=false;if(q(fa)){e6=fa;fa=undefined}fa=fa||""}var e3=Q(),e4=e8?e3._week.dow:0;if(e6!=null){return H(fa,(e6+e4)%7,e9,"day")}var e7;var e5=[];for(e7=0;e7<7;e7++){e5[e7]=H(fa,(e7+e4)%7,e9,"day")}return e5}function cT(e4,e3){return aX(e4,e3,"months")}function cB(e4,e3){return aX(e4,e3,"monthsShort")}function c5(e4,e5,e3){return eU(e4,e5,e3,"weekdays")}function cL(e4,e5,e3){return eU(e4,e5,e3,"weekdaysShort")}function Y(e4,e5,e3){return eU(e4,e5,e3,"weekdaysMin")}A("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e5){var e3=e5%10,e4=(cP(e5%100/10)===1)?"th":(e3===1)?"st":(e3===2)?"nd":(e3===3)?"rd":"th";return e5+e4}});eB.lang=ee("moment.lang is deprecated. Use moment.locale instead.",A);eB.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",Q);var ex=Math.abs;function bm(){var e3=this._data;this._milliseconds=ex(this._milliseconds);this._days=ex(this._days);this._months=ex(this._months);e3.milliseconds=ex(e3.milliseconds);e3.seconds=ex(e3.seconds);e3.minutes=ex(e3.minutes);e3.hours=ex(e3.hours);e3.months=ex(e3.months);e3.years=ex(e3.years);return this}function aE(e7,e4,e5,e6){var e3=de(e4,e5);e7._milliseconds+=e6*e3._milliseconds;e7._days+=e6*e3._days;e7._months+=e6*e3._months;return e7._bubble()}function bB(e3,e4){return aE(this,e3,e4,1)}function dO(e3,e4){return aE(this,e3,e4,-1)}function eD(e3){if(e3<0){return Math.floor(e3)}else{return Math.ceil(e3)}}function cU(){var e5=this._milliseconds;var fb=this._days;var e3=this._months;var e7=this._data;var fa,e6,e9,e8,e4;if(!((e5>=0&&fb>=0&&e3>=0)||(e5<=0&&fb<=0&&e3<=0))){e5+=eD(eY(e3)+fb)*86400000;fb=0;e3=0}e7.milliseconds=e5%1000;fa=dh(e5/1000);e7.seconds=fa%60;e6=dh(fa/60);e7.minutes=e6%60;e9=dh(e6/60);e7.hours=e9%24;fb+=dh(e9/24);e4=dh(f(fb));e3+=e4;fb-=eD(eY(e4));e8=dh(e3/12);e3%=12;e7.days=fb;e7.months=e3;e7.years=e8;return this}function f(e3){return e3*4800/146097}function eY(e3){return e3*146097/4800}function eG(e4){if(!this.isValid()){return NaN}var e6;var e3;var e5=this._milliseconds;e4=cO(e4);if(e4==="month"||e4==="year"){e6=this._days+e5/86400000;e3=this._months+f(e6);return e4==="month"?e3:e3/12}else{e6=this._days+Math.round(eY(this._months));switch(e4){case"week":return e6/7+e5/604800000;case"day":return e6+e5/86400000;case"hour":return e6*24+e5/3600000;case"minute":return e6*1440+e5/60000;case"second":return e6*86400+e5/1000;case"millisecond":return Math.floor(e6*86400000)+e5;default:throw new Error("Unknown unit "+e4)}}}function c2(){if(!this.isValid()){return NaN}return(this._milliseconds+this._days*86400000+(this._months%12)*2592000000+cP(this._months/12)*31536000000)}function d5(e3){return function(){return this.as(e3)}}var e0=d5("ms");var L=d5("s");var dt=d5("m");var t=d5("h");var d9=d5("d");var dP=d5("w");var d4=d5("M");var bj=d5("y");function eT(){return de(this)}function G(e3){e3=cO(e3);return this.isValid()?this[e3+"s"]():NaN}function b9(e3){return function(){return this.isValid()?this._data[e3]:NaN}}var c=b9("milliseconds");var bg=b9("seconds");var aD=b9("minutes");var U=b9("hours");var be=b9("days");var eJ=b9("months");var bK=b9("years");function ec(){return dh(this.days()/7)}var cZ=Math.round;var dG={ss:44,s:45,m:45,h:22,d:26,M:11};function aj(e4,e6,e5,e7,e3){return e3.relativeTime(e6||1,!!e5,e4,e7)}function dI(e7,e4,fb){var e5=de(e7).abs();var fc=cZ(e5.as("s"));var e6=cZ(e5.as("m"));var fa=cZ(e5.as("h"));var fd=cZ(e5.as("d"));var e3=cZ(e5.as("M"));var e8=cZ(e5.as("y"));var e9=fc<=dG.ss&&["s",fc]||fc0;e9[4]=fb;return aj.apply(null,e9)}function et(e3){if(e3===undefined){return cZ}if(typeof(e3)==="function"){cZ=e3;return true}return false}function cl(e3,e4){if(dG[e3]===undefined){return false}if(e4===undefined){return dG[e3]}dG[e3]=e4;if(e3==="s"){dG.ss=e4-1}return true}function a(e5){if(!this.isValid()){return this.localeData().invalidDate()}var e3=this.localeData();var e4=dI(this,!e5,e3);if(e5){e4=e3.pastFuture(+this,e4)}return e3.postformat(e4)}var aU=Math.abs;function bT(e3){return((e3>0)-(e3<0))||+e3}function bI(){if(!this.isValid()){return this.localeData().invalidDate()}var fh=aU(this._milliseconds)/1000;var fi=aU(this._days);var e6=aU(this._months);var fa,fg,fd;fa=dh(fh/60);fg=dh(fa/60);fh%=60;fa%=60;fd=dh(e6/12);e6%=12;var e5=fd;var fe=e6;var e4=fi;var fc=fg;var e9=fa;var fj=fh?fh.toFixed(3).replace(/\.?0+$/,""):"";var ff=this.asSeconds();if(!ff){return"P0D"}var e3=ff<0?"-":"";var e7=bT(this._months)!==bT(ff)?"-":"";var e8=bT(this._days)!==bT(ff)?"-":"";var fb=bT(this._milliseconds)!==bT(ff)?"-":"";return e3+"P"+(e5?e7+e5+"Y":"")+(fe?e7+fe+"M":"")+(e4?e8+e4+"D":"")+((fc||e9||fj)?"T":"")+(fc?fb+fc+"H":"")+(e9?fb+e9+"M":"")+(fj?fb+fj+"S":"")}var d2=dN.prototype;d2.isValid=s;d2.abs=bm;d2.add=bB;d2.subtract=dO;d2.as=eG;d2.asMilliseconds=e0;d2.asSeconds=L;d2.asMinutes=dt;d2.asHours=t;d2.asDays=d9;d2.asWeeks=dP;d2.asMonths=d4;d2.asYears=bj;d2.valueOf=c2;d2._bubble=cU;d2.clone=eT;d2.get=G;d2.milliseconds=c;d2.seconds=bg;d2.minutes=aD;d2.hours=U;d2.days=be;d2.weeks=ec;d2.months=eJ;d2.years=bK;d2.humanize=a;d2.toISOString=bI;d2.toString=bI;d2.toJSON=bI;d2.locale=e2;d2.localeData=dR;d2.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bI);d2.lang=y;cx("X",0,0,"unix");cx("x",0,0,"valueOf");bd("x",B);bd("X",eP);bU("X",function(e3,e5,e4){e4._d=new Date(parseFloat(e3,10)*1000)});bU("x",function(e3,e5,e4){e4._d=new Date(cP(e3))});eB.version="2.20.1";aR(dB);eB.fn=cc;eB.min=n;eB.max=bl;eB.now=cy;eB.utc=cv;eB.unix=db;eB.months=cT;eB.isDate=eu;eB.locale=A;eB.invalid=N;eB.duration=de;eB.isMoment=cb;eB.weekdays=c5;eB.parseZone=cM;eB.localeData=Q;eB.isDuration=ae;eB.monthsShort=cB;eB.weekdaysMin=Y;eB.defineLocale=cA;eB.updateLocale=ej;eB.locales=b4;eB.weekdaysShort=cL;eB.normalizeUnits=cO;eB.relativeTimeRounding=et;eB.relativeTimeThreshold=cl;eB.calendarFormat=au;eB.prototype=cc;eB.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"};return eB}))); var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;kg?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d= d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1< g&&-1"+$(this).html()+"
");html_calc.css("font-size",$(this).css("font-size")).hide();html_calc.prependTo("body");var width=html_calc.width();html_calc.remove();if(width==0){var total=0;$(this).eq(0).children().each(function(){total+=$(this).textWidth()});return total}return width};$.fn.textHeight=function(){var html_calc=$(""+$(this).html()+"");html_calc.css("font-size",$(this).css("font-size")).hide();html_calc.prependTo("body");var height=html_calc.height();html_calc.remove();return height};Array.isArray=function(obj){return Object.prototype.toString.call(obj)==="[object Array]"};String.prototype.getCodePointLength=function(){return this.length-this.split(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g).length+1};String.fromCodePoint=function(){var chars=Array.prototype.slice.call(arguments);for(var i=chars.length;i-->0;){var n=chars[i]-65536;if(n>=0)chars.splice(i,1,55296+(n>>10),56320+(n&1023))}return String.fromCharCode.apply(null,chars)};$.fn.rate=function(options){if(options===undefined||typeof options==="object"){return this.each(function(){if(!$.data(this,"rate")){$.data(this,"rate",new Rate(this,options))}})}else if(typeof options==="string"){var args=arguments;var returns;this.each(function(){var instance=$.data(this,"rate");if(instance instanceof Rate&&typeof instance[options]==="function"){returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))}if(options==="destroy"){$(instance.element).off();$.data(this,"rate",null)}});return returns!==undefined?returns:this}};function Rate(element,options){this.element=element;this.settings=$.extend({},$.fn.rate.settings,options);this.set_faces={};this.build()}Rate.prototype.build=function(){this.layers={};this.value=0;this.raise_select_layer=false;if(this.settings.initial_value){this.value=this.settings.initial_value}if($(this.element).attr("data-rate-value")){this.value=$(this.element).attr("data-rate-value")}var selected_width=this.value/this.settings.max_value*100;if(typeof this.settings.symbols[this.settings.selected_symbol_type]==="string"){var symbol=this.settings.symbols[this.settings.selected_symbol_type];this.settings.symbols[this.settings.selected_symbol_type]={};this.settings.symbols[this.settings.selected_symbol_type]["base"]=symbol;this.settings.symbols[this.settings.selected_symbol_type]["selected"]=symbol;this.settings.symbols[this.settings.selected_symbol_type]["hover"]=symbol}var base_layer=this.addLayer("base-layer",100,this.settings.symbols[this.settings.selected_symbol_type]["base"],true);var select_layer=this.addLayer("select-layer",selected_width,this.settings.symbols[this.settings.selected_symbol_type]["selected"],true);var hover_layer=this.addLayer("hover-layer",0,this.settings.symbols[this.settings.selected_symbol_type]["hover"],false);this.layers["base_layer"]=base_layer;this.layers["select_layer"]=select_layer;this.layers["hover_layer"]=hover_layer;$(this.element).on("mousemove",$.proxy(this.hover,this));$(this.element).on("click",$.proxy(this.select,this));$(this.element).on("mouseleave",$.proxy(this.mouseout,this));$(this.element).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"});if(this.settings.hasOwnProperty("update_input_field_name")){this.settings.update_input_field_name.val(this.value)}};Rate.prototype.addLayer=function(layer_name,visible_width,symbol,visible){var layer_body="
";for(var i=0;i"+symbol[i]+""}else{if(this.settings.convert_to_utf8){symbol=String.fromCodePoint(symbol)}layer_body+=""+symbol+""}}layer_body+="
";var layer=$(layer_body).addClass("rate-"+layer_name).appendTo(this.element);$(layer).css({width:visible_width+"%",height:$(layer).children().eq(0).textHeight(),overflow:"hidden",position:"absolute",top:0,display:visible?"block":"none","white-space":"nowrap"});$(this.element).css({width:$(layer).textWidth()+"px",height:$(layer).height(),position:"relative",cursor:this.settings.cursor});return layer};Rate.prototype.updateServer=function(){if(this.settings.url!=undefined){$.ajax({url:this.settings.url,type:this.settings.ajax_method,data:$.extend({},{value:this.getValue()},this.settings.additional_data),success:$.proxy(function(data){$(this.element).trigger("updateSuccess",[data])},this),error:$.proxy(function(jxhr,msg,err){$(this.element).trigger("updateError",[jxhr,msg,err])},this)})}};Rate.prototype.getValue=function(){return this.value};Rate.prototype.hover=function(ev){var pad=parseInt($(this.element).css("padding-left").replace("px",""));var x=ev.pageX-$(this.element).offset().left-pad;var val=this.toValue(x,true);if(val!=this.value){this.raise_select_layer=false}if(!this.raise_select_layer&&!this.settings.readonly){var visible_width=this.toWidth(val);this.layers.select_layer.css({display:"none"});if(!this.settings.only_select_one_symbol){this.layers.hover_layer.css({width:visible_width+"%",display:"block"})}else{var index_value=Math.floor(val);this.layers.hover_layer.css({width:"100%",display:"block"});this.layers.hover_layer.children("span").css({visibility:"hidden"});this.layers.hover_layer.children("span").eq(index_value!=0?index_value-1:0).css({visibility:"visible"})}}};Rate.prototype.select=function(ev){if(!this.settings.readonly){var old_value=this.getValue();var pad=parseInt($(this.element).css("padding-left").replace("px",""));var x=ev.pageX-$(this.element).offset().left-pad;var selected_width=this.toWidth(this.toValue(x,true));this.setValue(this.toValue(selected_width));this.raise_select_layer=true}};Rate.prototype.mouseout=function(){this.layers.hover_layer.css({display:"none"});this.layers.select_layer.css({display:"block"})};Rate.prototype.toWidth=function(val){return val/this.settings.max_value*100};Rate.prototype.toValue=function(width,in_pixels){var val;if(in_pixels){val=width/this.layers.base_layer.textWidth()*this.settings.max_value}else{val=width/100*this.settings.max_value}var temp=val/this.settings.step_size;if(temp-Math.floor(temp)<5e-5){val=Math.round(val/this.settings.step_size)*this.settings.step_size}val=Math.ceil(val/this.settings.step_size)*this.settings.step_size;val=val>this.settings.max_value?this.settings.max_value:val;return val};Rate.prototype.getElement=function(layer_name,index){return $(this.element).find(".rate-"+layer_name+" span").eq(index-1)};Rate.prototype.getLayers=function(){return this.layers};Rate.prototype.setFace=function(value,face){this.set_faces[value]=face};Rate.prototype.setAdditionalData=function(data){this.settings.additional_data=data};Rate.prototype.getAdditionalData=function(){return this.settings.additional_data};Rate.prototype.removeFace=function(value){delete this.set_faces[value]};Rate.prototype.setValue=function(value){if(!this.settings.readonly){if(value<0){value=0}else if(value>this.settings.max_value){value=this.settings.max_value}var old_value=this.getValue();this.value=value;var change_event=$(this.element).trigger("change",{from:old_value,to:this.value});$(this.element).find(".rate-face").remove();$(this.element).find("span").css({visibility:"visible"});var index_value=Math.ceil(this.value);if(this.set_faces.hasOwnProperty(index_value)){var face="
"+this.set_faces[index_value]+"
";var base_layer_element=this.getElement("base-layer",index_value);var select_layer_element=this.getElement("select-layer",index_value);var hover_layer_element=this.getElement("hover-layer",index_value);var left_pos=base_layer_element.textWidth()*(index_value-1)+(base_layer_element.textWidth()-$(face).textWidth())/2;$(face).appendTo(this.element).css({display:"inline-block",position:"absolute",left:left_pos}).addClass("rate-face");base_layer_element.css({visibility:"hidden"});select_layer_element.css({visibility:"hidden"});hover_layer_element.css({visibility:"hidden"})}if(!this.settings.only_select_one_symbol){var width=this.toWidth(this.value);this.layers.select_layer.css({display:"block",width:width+"%",height:this.layers.base_layer.css("height")});this.layers.hover_layer.css({display:"none",height:this.layers.base_layer.css("height")})}else{var width=this.toWidth(this.settings.max_value);this.layers.select_layer.css({display:"block",width:width+"%",height:this.layers.base_layer.css("height")});this.layers.hover_layer.css({display:"none",height:this.layers.base_layer.css("height")});this.layers.select_layer.children("span").css({visibility:"hidden"});this.layers.select_layer.children("span").eq(index_value!=0?index_value-1:0).css({visibility:"visible"})}$(this.element).attr("data-rate-value",this.value);if(this.settings.change_once){this.settings.readonly=true}this.updateServer();var change_event=$(this.element).trigger("afterChange",{from:old_value,to:this.value});if(this.settings.hasOwnProperty("update_input_field_name")){this.settings.update_input_field_name.val(this.value)}}};Rate.prototype.increment=function(){this.setValue(this.getValue()+this.settings.step_size)};Rate.prototype.decrement=function(){this.setValue(this.getValue()-this.settings.step_size)};$.fn.rate.settings={max_value:5,step_size:.5,initial_value:0,symbols:{utf8_star:{base:"☆",hover:"★",selected:"★"},utf8_hexagon:{base:"⬡",hover:"⬢",selected:"⬢"},hearts:"♥",fontawesome_beer:'',fontawesome_star:{base:'',hover:'',selected:''},utf8_emoticons:{base:[128549,128531,128530,128516],hover:[128549,128531,128530,128516],selected:[128549,128531,128530,128516]}},selected_symbol_type:"utf8_star",convert_to_utf8:false,cursor:"default",readonly:false,change_once:false,only_select_one_symbol:false,ajax_method:"POST",additional_data:{}}})(jQuery,window); (function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}if(typeof(b.ui.mouse)=='undefined'){return} var d=b.ui.mouse.prototype,f=d._mouseInit,c=d._mouseDestroy,a;function e(h,i){if(h.originalEvent.touches.length>1){return}h.preventDefault();var j=h.originalEvent.changedTouches[0],g=document.createEvent("MouseEvents");g.initMouseEvent(i,true,true,window,1,j.screenX,j.screenY,j.clientX,j.clientY,false,false,false,false,0,null);h.target.dispatchEvent(g)}d._touchStart=function(h){var g=this;if(a||!g._mouseCapture(h.originalEvent.changedTouches[0])){}a=true;g._touchMoved=false;e(h,"mouseover");e(h,"mousemove");e(h,"mousedown")};d._touchMove=function(g){if(!a){return}this._touchMoved=true;e(g,"mousemove")};d._touchEnd=function(g){if(!a){return}e(g,"mouseup");e(g,"mouseout");if(!this._touchMoved){e(g,"click")}a=false};d._mouseInit=function(){var g=this;g.element.bind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});f.call(g)};d._mouseDestroy=function(){var g=this;g.element.unbind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});c.call(g)}})(jQuery); ;(function($){ $.fn.datetimepicker.dates['pl']={ days: ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"], daysShort: ["Nie", "Pn", "Wt", "Śr", "Czw", "Pt", "So", "Nie"], daysMin: ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So", "N"], months: ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"], monthsShort: ["Sty", "Lu", "Mar", "Kw", "Maj", "Cze", "Lip", "Sie", "Wrz", "Pa", "Lis", "Gru"], today: "Dzisiaj", suffix: [], meridiem: [], weekStart: 1 };}(jQuery)); var lfb_lastStepID=0,lfb_lastSteps=new Array,lfb_plannedSteps,lfb_gmapService=!1,tld_selectionMode=!1,lfb_calendars=new Array,lfb_stripe;function lfb_clearFixedElements(){jQuery("*:not(#lfb_bootstraped)").each(function(){0==jQuery(this).closest("#lfb_bootstraped").length&&"static"!=jQuery(this).css("position")&&jQuery(this).css("position","static"),0==jQuery(this).closest("#lfb_bootstraped").length&&jQuery(this).css("will-change","unset")})}function wpe_getForm(t){for(var e=!1,a=0;a .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+p.formID+'"] > .tooltip').remove())),e&&s.addClass("action"),!e&&s.is(".action")||("zoom"!=p.imgIconStyle&&s.find("span.icon_select").animate({bottom:160,opacity:0},200),s.is(".checked")?e&&s.data("required")||("zoom"==p.imgIconStyle?(s.delay(200).css("transition-delay","0.2s"),s.find("span.icon_select").css("transition-delay","0s")):s.css("transition-delay","0s"),r=220,"zoom"==p.imgIconStyle&&(r=0),s.delay(r).removeClass("checked"),"zoom"!=p.imgIconStyle?s.delay(220).find("span.icon_select").removeClass("fui-check").addClass("fui-cross"):s.find("span.icon_select").css("transition-delay","0s"),s.delay(400).css("transition-delay","0s"),s.find(".icon_quantity").delay(300).fadeOut(200)):(s.css("transition-delay","0s"),0!=p.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=p.imgTitlesStyle||t.b_tooltip("show"),"zoom"==p.imgIconStyle&&s.find("span.icon_select").css("transition-delay",".5s"),s.is('[type="checkbox"][data-checkboxstyle="checkbox"]')||s.delay(220).addClass("checked"),"zoom"!=p.imgIconStyle&&s.delay(220).find("span.icon_select").removeClass("fui-cross").addClass("fui-check"),0\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+(e||void 0===e?"
":"
")+"$2")}function wpe_initForms(){jQuery.each(wpe_forms,function(){var p=this;p.price=0,p.priceSingle=0,p.priceMax=0,p.step=0,p.gFormDesignCheck=0,p.timer_gFormSubmit=null,p.timer_gFormDesign=null,p.animationsSpeed*=1e3,p.reductionResult=0,p.reduction=0,p.discountCode="",p.discountCodeDisplayed=!1,p.initialPrice=parseFloat(p.initialPrice),p.contactSent=0,p.gravitySent=!1,p.shineFxIndex=0,p.subscriptionText=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #finalPrice span:eq(1)').html(),p.richtextsContent=new Array,p.emailSent=!1,p.autoStart=!1,p.urlVariables="",p.useRazorpay=!1,p.razorpayReady=!1,p.stripeToken="",p.itemsData=new Array,p.signature=!1,jQuery('#estimation_popup[data-form="'+p.formID+'"]').is(".lfb_visualEditing")&&lfb_clearFixedElements(),jQuery('#estimation_popup[data-form="'+p.formID+'"]').is(".wpe_fullscreen")&&jQuery('#estimation_popup[data-form="'+p.formID+'"]').closest("#lfb_bootstraped").parents().css({position:"static",display:"block"}),1==p.useSignature&&(p.signature=jQuery("#lfb_signature").signature({thickness:4,guideline:!0,guidelineOffset:26}),jQuery("#lfb_resetSignature").on("click",function(){p.signature.signature("clear")}),setTimeout(function(){jQuery('#estimation_popup[data-form="'+p.formID+'"] #lfb_signature canvas').attr("width",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #lfb_signature').width()),jQuery('#estimation_popup[data-form="'+p.formID+'"] #lfb_signature canvas').css("width",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #lfb_signature').width())},500));for(var t=0;t"+jQuery(this).attr("data-tooltiptext")+"")}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] [data-type="numberfield"]:not([value])').each(function(){var t=0;jQuery(this).is("[min]")&&(t=parseInt(jQuery(this).attr("min"))),jQuery(this).val(t)});var o=p.formID;1==p.save_to_cart?p.save_to_cart=!0:p.save_to_cart=!1,1==p.save_to_cart_edd?p.save_to_cart_edd=!0:p.save_to_cart_edd=!1,0i)&&jQuery(this).val(""))})});var d=(d=wpe_forms[0].dateFormat).replace(/\\\//g,"/");jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #mainPanel .genSlide .lfb_datepicker:not(.lfb_datepickerReady)').each(function(){var t,e=new Date;jQuery(this).addClass("lfb_datepickerReady"),jQuery(this).is('[data-allowpast="1"]')||jQuery(this).is('[data-datetype="time"]')?e=null:jQuery(this).is('[data-allowpast="0"]')&&0 .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+p.formID+'"] > .tooltip').remove())}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #mainPanel .genSlide .genContent div.selectable span.icon_select.lfb_fxZoom').css({textShadow:"-2px 0px "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #mainPanel').css("background-color")}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').is(".wpe_popup")&&!jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').closest("#lfb_bootstraped").parent().is("body")&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').closest("#lfb_bootstraped").detach().appendTo("body"),jQuery('#estimation_popup[data-form="'+p.formID+'"]').is(".wpe_fullscreen")&&jQuery("html,body").css("overflow-y","hidden"),0'),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').find("a.btn-primary").mouseover(function(){0==p.shineFxIndex&&lfb_shineBtn(o,jQuery(this).find(".lfb_shineCanvas"))})),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] .lfb_dropzone').each(function(){var t=null;0
'+t+"
").css({position:"absolute",top:-55,left:-20,opacity:1}).hide(),a=1;jQuery(this).is("[data-stepslider]")&&0 .colpick").fadeOut()},onChange:function(t,e,a,r,i){jQuery(r).val("#"+e),jQuery(r).prev(".lfb_colorPreview").css({backgroundColor:"#"+e})}})}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').find('.lfb_colorPreview[data-urltarget],input[type="text"][data-itemid]:not(.lfb_colorpicker)[data-urltarget],textarea[data-itemid][data-urltarget],select[data-itemid][data-urltarget],input[type="number"][data-urltarget]').each(function(){jQuery(this).click(function(){var t;tld_selectionMode||"null"!=typeof(t=window.open(jQuery(this).attr("data-urltarget"),"_blank"))&&null!=t&&t.focus()})}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"]').find('[data-autocomplete="1"]').each(function(){var t={};"city"==jQuery(this).attr("data-fieldtype")?t.types=["(cities)"]:"address"==jQuery(this).attr("data-fieldtype")?0 a').click(function(){tld_selectionMode||("less"==jQuery(this).attr("data-btn")?wpe_quantity_less:wpe_quantity_more)(this,o)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] .linkPrevious').click(function(){tld_selectionMode||wpe_previousStep(o)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] .btn-next').click(function(){tld_selectionMode||wpe_nextStep(o)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #btnOrderPaypal').click(function(){tld_selectionMode||wpe_order(o)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #finalSlide [data-toggle="switch"]').change(function(){wpe_toggleField(jQuery(this).attr("data-fieldid"),o)});var e=!1;jQuery(".gform_wrapper").each(function(){jQuery(this).attr("id").substr(jQuery(this).attr("id").lastIndexOf("_")+1,jQuery(this).attr("id").length)==p.gravityFormID&&(e?jQuery(this).remove():(e=!0,jQuery(this).detach().insertAfter('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #finalPrice')))}),setTimeout(function(){var t;1parseInt(jQuery(this).attr("max"))&&jQuery(this).val(jQuery(this).attr("max")),wpe_updatePrice(p.formID),wpe_updateSummary(p.formID)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] input[type="number"][data-itemid]').keydown(function(t){return 69!=t.keyCode}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] input[type="number"][data-itemid]').on("focusin",function(){0==jQuery(this).val()&&jQuery(this).val("")}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] input[type="number"][data-itemid]').on("keyup change",function(){wpe_updatePrice(p.formID),wpe_updateSummary(p.formID)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] input[type="number"][data-itemid]').focusout(function(){""==jQuery(this).val()&&jQuery(this).val(0),0==jQuery(this).val()&&!jQuery(this).is('[data-required="true"]')||(-1parseFloat(jQuery(this).attr("max"))&&jQuery(this).val(jQuery(this).attr("max")),""!=jQuery(this).val()&&!isNaN(parseInt(jQuery(this).val()))||jQuery(this).val(0),""!=jQuery(this).val()&&(jQuery(this).is('[data-valueasqt="0"]')||0
'+t+"
").css({position:"absolute",top:-55,left:-20,opacity:1}).hide(),e=1;jQuery(this).closest(".quantityBtns").is("[data-stepslider]")&&0'),jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').parent("li").next().is("br")||jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').parent("li").after("
"),jQuery(this).is(":checked")&&jQuery(this).trigger("click")}),jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper input[type="checkbox"]:not(.ready)').each(function(){jQuery(this).addClass("ready");jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').html();jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').parent("li").css("display","inline-block"),jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').append(jQuery(this)),jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').addClass("checkbox"),jQuery(this).before(''),jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').parent("li").next().is("br")||jQuery("#gform_wrapper_"+a.gravityFormID+' .gform_wrapper label[for="'+jQuery(this).attr("id")+'"]').parent("li").after("
")}),jQuery("#gform_wrapper_"+a.gravityFormID+" .gform_wrapper label.checkbox").each(function(){0').parent().bootstrapSwitch(),jQuery('#estimation_popup.wpe_bootstraped [data-toggle="switch"][data-checkboxstyle="switch"]').on("change",function(){jQuery(this).is(":checked")||jQuery(this).removeClass("checked")}),jQuery("#estimation_popup.wpe_bootstraped input[type=checkbox][data-urltarget]").each(function(){jQuery(this).closest(".switch.has-switch").click(function(){var t;tld_selectionMode||0
",jQuery(this).attr("data-file").replace(/ /g,"_")}),b=jQuery(y).data("title"),jQuery(y).is("[data-originallabel]")&&(b=jQuery(y).attr("data-originallabel")),-1==jQuery.inArray(jQuery(y).attr("data-itemid"),h)&&(h.push(jQuery(y).attr("data-itemid")),p={label:b,itemid:jQuery(y).attr("data-itemid"),type:g.attr("data-itemtype"),value:d,step:$panel.attr("data-title"),stepid:o,showInSummary:s,isFile:!0,files:l})),0

"+$panel.data("title")+" :


",o+="\n\n---------"+$panel.data("title")+" :---------\n";var m=new Array;$panel.find(".itemBloc:not(.lfb_disabled)").each(function(){var t=0,t=0",o+=" - "+m[f].label+":"+m[f].value+" ("+m[f].price+")\n"):void 0!==m[f].quantity&&1",o+=" - "+m[f].label+":"+m[f].quantity+" ("+m[f].price+")\n"):(i+=" - "+m[f].label+":"+m[f].price+"
",o+=" - "+m[f].label+":"+m[f].price+"\n"):void 0!==m[f].value?(i+=" - "+m[f].label+":"+m[f].value+"
",o+=" - "+m[f].label+":"+m[f].value+"\n"):void 0!==m[f].quantity&&1",o+=" - "+m[f].label+":"+m[f].quantity+"\n"):(i+=" - "+m[f].label+"
",o+=" - "+m[f].label+"\n"))}}(!r.price||r.price<0)&&(r.price=0);var c;return/^\d+(\.\d{2})?$/.test(r.price)||(r.price=parseFloat(r.price).toFixed(2)),""!=r.discountCode&&(0 Coupon:"+r.discountCode+" ("+c+")"):i+="
Coupon:"+r.discountCode),"left"==r.currencyPosition?(p+=r.currency+wpe_formatPrice(parseFloat(r.price).toFixed(2),t),o+="\n\nTotal:"+r.currency+wpe_formatPrice(parseFloat(r.price).toFixed(2),t)):(p+=wpe_formatPrice(parseFloat(r.price).toFixed(2),t)+r.currency,o+="\n\nTotal:"+wpe_formatPrice(parseFloat(r.price).toFixed(2),t)+r.currency),new Array(i,p,s,o)}function wpe_check_gform_response(t){var e,a,r=wpe_getForm(t);0'),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm').append(''),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm').append('')),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=a1]').val(a),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=p1]').val(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=p3]').val())):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=a1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=t1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=p1]').remove()),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=amount]').val(e),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=a3]').val(e),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=item_number]').val(r.current_ref),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=item_name]').val(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [name=item_name]').val()+" - "+r.current_ref),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #wtmt_paypalForm [type="submit"]').trigger("click")):(jQuery("#finalText").html(jQuery("#gform_wrapper_"+r.gravityFormID+" .gforms_confirmation_message").html()),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #finalSlide #gforms_confirmation_message').fadeIn(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #finalSlide #lfb_summary').fadeOut(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #finalSlide #lfb_couponContainer').fadeOut(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #finalSlide #lfb_legalNoticeContent').fadeOut(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #finalSlide .linkPrevious').fadeOut(),wpe_finalStep(t)))}function wpe_quantity_less(t,e){var a=jQuery(t).parent().parent().find(".icon_quantity"),r=parseFloat(jQuery(t).parent().data("min")),i=parseInt(a.html());1 tr > th:eq(1)').is(".lfb-hidden")&&(a.find("table thead > tr > th:eq(1)").remove(),a.find("table tbody td.lfb_valueTd").remove()),a.find("th.sfb_summaryStep").attr("align","center"),a.find("table").attr("width","90%"),a.find("table").css("width","90%"),a.find("table").attr("border","1"),a.find("table").attr("bordercolor",lfb_rgb2hex(a.find("table").css("border-color"))),a.find("table").attr("style","width:90%;margin:0 auto;"),a.find("thead td, thead th").each(function(){jQuery(this).attr("bgcolor",lfb_rgb2hex(a.find("thead").css("background-color"))),jQuery(this).css("background",lfb_rgb2hex(a.find("thead").css("background-color")))}),a.find("th").each(function(){jQuery(this).attr("bgcolor",lfb_rgb2hex(jQuery(this).css("background-color")))}),a.find("td,th").each(function(){jQuery(this).attr("color",lfb_rgb2hex(jQuery(this).css("color"))),jQuery(this).html(''+jQuery(this).html()+"")}),a.find("table .lfb-hidden").remove(),a.find("table").attr("cellspacing","0"),a.find("table").attr("cellpadding","8"),a.find("table").attr("bgcolor","#FFFFFF"),a.find("td,th").each(function(){jQuery(this).attr("align",jQuery(this).css("text-align")),jQuery(this).css("padding",jQuery(this).css("padding"))}),"1"==form.summary_showAllPricesEmail&&(a.find(".sfb_summaryStep").attr("colspan",r),a.find("#lfb_summaryDiscountTr>th:eq(0),#sfb_summaryTotalTr>th:eq(0)").attr("colspan",r-1)),3==r?(a.find("td:not(:first-child)").each(function(){jQuery(this).attr("width","164")}),a.find("th:not(:first-child)").each(function(){jQuery(this).attr("width","164")}),a.find("tr>td:first-child").each(function(){jQuery(this).attr("width","340")}),a.find("tr>th:first-child").each(function(){jQuery(this).attr("width","340")})):(a.find("td:not(:first-child)").each(function(){jQuery(this).attr("width","103")}),a.find("th:not(:first-child)").each(function(){jQuery(this).attr("width","103")}),a.find("tr>td:first-child").each(function(){jQuery(this).attr("width","332")}),a.find("tr>th:first-child").each(function(){jQuery(this).attr("width","332")})),a.find("*:not(.lfb_value)").each(function(){var t=lfb_rgb2hex(jQuery(this).css("color"));jQuery(this).css({color:""}),jQuery(this).attr("style",jQuery(this).attr("style")+";color:"+t),0'+a.html()+"
"),a}function wpe_getContactInformations(t,e){var a;e?a={email:"",phone:"",firstName:"",lastName:"",address:"",city:"",state:"",zip:"",country:"",job:"",phoneJob:"",url:"",company:""}:((a=new Array).email="",a.phone="",a.firstName="",a.lastName="",a.address="",a.city="",a.state="",a.zip="",a.country="",a.job="",a.phoneJob="",a.url="",a.company=""),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] [data-fieldtype="email"]').each(function(){0/g,"")).replace(/<\/span>/g,"")).substr(3,e.length),1==i.emailCustomerLinks&&(e="",t.find(".dz-success.dz-complete").each(function(){e+=jQuery(this).attr("data-url")+","}),0/gi,"\n")),-1==p.indexOf(a)&&(p.push(a),o+="&"+a+"="+e)))}),0/g,"[n]"),i=l[1],o=l[2];d.urlVariables="",1==d.sendUrlVariables&&(d.urlVariables=lfb_getUrlVariables(n,l[2],!0)),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+n+'"]').is("[data-subs]")&&(i+=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+n+'"]').attr("data-subs"));var p=0,u=!0;jQuery('#estimation_popup.wpe_bootstraped[data-form="'+n+'"] [data-activatePaypal="true"]:not(:checked):not(.checked)').each(function(){var t=jQuery(this).closest(".genSlide").attr("data-stepid");"final"!=t&&(t=parseInt(t)),-1==jQuery.inArray(t,lfb_lastSteps)||(u=!1)}),0'),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm').append(''),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm').append('')),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=a1]').val(r),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=p1]').val(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=p3]').val()),a<=0&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=cmd]').val("_xclick"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=a3]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=t3]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=p3]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=bn]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=no_note]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=src]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=a1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=t1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=p1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm').append(''))):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=a1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=t1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=p1]').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name=amount]').val(a)),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d.formID+'"] #wtmt_paypalForm [name="return"]').val(lfb_getRedirectionURL(n)),""!=(i=lfb_getRedirectionURL(n))&&"#"!=i&&" "!=i&&(""!=d.urlVariables&&-1'+jQuery(this).val()+""+t+" "+jQuery(this).closest(".lfb_item").find("label").html()+"

":r+="

"+jQuery(this).closest(".lfb_item").find("label").html()+" "+t+' '+jQuery(this).val()+"

"))}),a=lfb_checkStepItemsValid("final",t),1==e.legalNoticeEnable&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e.formID+'"] #lfb_legalCheckbox').is(":checked")||(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e.formID+'"] #lfb_legalCheckbox').closest(".form-group").addClass("has-error"),a=!1)),1==a&&lfb_checkUserEmail(e)&&lfb_checkCaptcha(e,function(){jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e.formID+'"] #finalSlide').find("#wpe_btnOrder,.linkPrevious").fadeOut(250),wpe_uploadFiles(t,r,"",i)})}function wpe_previousStep(a){var r=wpe_getForm(a),t=navigator.userAgent.toLowerCase(),e=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel').offset().top-100;jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"]').is(".wpe_fullscreen")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"]').is(".wpe_popup")?((e=0) .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+r.formID+'"] > .tooltip').remove()),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] .errorMsg').hide(),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find("a.lfb_button.checked:not(.prechecked)").each(function(){wpe_itemClick(jQuery(this),!1,a)}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find("div.selectable.checked:not(.prechecked)").each(function(){wpe_itemClick(jQuery(this),!1,a)}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find('input[data-toggle="switch"]:checked:not(.prechecked)').each(function(){jQuery(this).trigger("click.auto")});var i=!1,o=0,p=0;jQuery.each(lfb_lastSteps,function(t){var e=this;parseInt(e)==parseInt(r.step)&&(i=!0),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+e+'"] .lfb_executed').removeClass("lfb_executed"),i||(0 .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+r.formID+'"] > .tooltip').remove()),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] .errorMsg').hide(),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+e+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find("a.lfb_button.checked:not(.prechecked)").each(function(){wpe_itemClick(jQuery(this),!1,e)}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+e+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find("div.selectable.checked:not(.prechecked)").each(function(){wpe_itemClick(jQuery(this),!1,e)}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+e+'"] #mainPanel .genSlide[data-stepid="'+r.step+'"]').find('input[data-toggle="switch"]:checked:not(.prechecked)').each(function(){jQuery(this).trigger("click.auto")}),a=lfb_lastSteps.indexOf(t),lfb_lastSteps=jQuery.grep(lfb_lastSteps,function(t,e){if(e<=a)return t}),wpe_changeStep(t,e),setTimeout(function(){wpe_updateSummary(e,!0)},350),setTimeout(function(){wpe_updateStep(e)},2e3))}function wpe_uploadFiles(s,n,t,d){var e,a,r=!0,l=wpe_getForm(s);l.useRazorpay&&!l.razorpayReady?(r=!1,e=l.price,a=0,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+l.formID+'"]').is('[data-isSubs="true"]')&&(a=l.price,(e=0)th:eq(0),#sfb_summaryTotalTr>th:eq(0)").attr("colspan",e.find("thead th:not(.lfb-hidden)").length-1),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] #lfb_floatingSummary #lfb_floatingSummaryInner').html(e),e.find(".sfb_summaryStep").click(function(){var t=jQuery(this).closest("#estimation_popup").attr("data-form"),e=wpe_getForm(t),a=parseInt(jQuery(this).attr("data-step"));void 0!==e.canGoprevious&&!e.canGoprevious||lfb_returnToStep(a,t)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] #lfb_floatingSummary').is('[data-numberstep="1"]')&&e.find(".sfb_summaryStep").each(function(t){var e=t+1;jQuery(this).find("strong").html(e+". "+jQuery(this).find("strong").html())})))}function wpe_updateSummary(u,t){var e,m,f,c,a,r,i,o,p,s,n,d,l,_,y,b=wpe_getForm(u);(0'+t+"")),m=l.stepid,isNaN(l.quantity)&&(l.quantity=1),e="",isNaN(l.price)&&(e="lfb_noPriceRow",l.price=0),a=l.value,void 0===l.value?a="":e+=" lfb_infoRow",""!=a&&l.showInSummary&&(f=!0),r=l.price,i=wpe_formatPrice(l.quantity,u),""!=a&&0==r&&1==i?r=i="":(o=!1,parseFloat(r)<0&&(o=!0,r*=-1),r="left"==b.currencyPosition?b.currency+""+wpe_formatPrice(parseFloat(r).toFixed(2),u):wpe_formatPrice(parseFloat(r).toFixed(2),u)+""+b.currency,o&&(r="- "+r)),l.isFile,p="",1==b.summary_hideQt&&(p="lfb-hidden"),1==b.summary_hideZero&&0==l.price&&(r=""),1==b.summary_hideZeroQt&&0==l.quantity&&(i=""),s="",l.showInSummary||(s="lfb-hidden"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] [data-itemid="'+l.itemid+'"]').is('[data-hideqtsum="true"]')&&(i=""),0":0")),d=!0,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] [data-itemid="'+l.itemid+'"]').is('[data-hidezeropricesum="true"]')&&0==l.price&&(d=!1),d&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] .lfb_itemContainer_'+l.itemid).is('[data-itemtype="filefield"]')?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody #lfb_summaryDiscountTr').before(''+l.label+n+''+a+''+i+''+r+""):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody #lfb_summaryDiscountTr').before(''+l.label+n+''+a+''+i+''+r+""))))}),0span').html(a),b.discountCodeDisplayed||(r=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr th[colspan]').html(),0==jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr th[colspan] i').length&&(":"==r.substr(r.length-1,1)?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr th[colspan]').html(r.substr(0,r.length-1)+" ("+b.discountCode+") :"):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr th[colspan]').html(r+" ("+b.discountCode+")"))),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr').slideDown(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_floatingSummary #lfb_summaryDiscountTr').slideDown()),b.useVAT&&(0==jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_vatRow').length&&((i=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr').clone()).attr("id","lfb_vatRow"),i.find("#lfb_summaryDiscount").attr("id","lfb_summaryVat"),i.children("th").first().html(b.vatLabel+" "+b.vatAmount+"% :"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryDiscountTr').after(i)),o=b.currency+wpe_formatPrice(parseFloat(b.vatPrice).toFixed(2),u),"left"!=b.currencyPosition&&(o=wpe_formatPrice(parseFloat(b.vatPrice).toFixed(2),u)+b.currency),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary #lfb_summaryVat').html(o)),(!b.price||b.price<0)&&(b.price=0),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tr th.sfb_summaryStep').each(function(){0==jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tr[data-itemstep="'+jQuery(this).attr("data-step")+'"]:not(.lfb-hidden)').length&&jQuery(this).parent().addClass("lfb-hidden")}),p=b.currency+""+wpe_formatPrice(parseFloat(b.price).toFixed(2),u),b.currency,wpe_formatPrice(parseFloat(b.priceSingle).toFixed(2),u),"left"!=b.currencyPosition&&(p=wpe_formatPrice(parseFloat(b.price).toFixed(2),u)+""+b.currency,wpe_formatPrice(parseFloat(b.priceSingle).toFixed(2),u),b.currency),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table #lfb_summaryTotal>span:eq(0)').html(p),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+b.formID+'"]').is("[data-totalrange]")&&0"+b.currency+wpe_formatPrice(d,u)+" "+n+" "+b.currency+wpe_formatPrice(l,u)+"","left"!=b.currencyPosition&&(_=parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+b.formID+'"]').attr("data-totalrange")),formatedPrice=s+" "+wpe_formatPrice(d,u)+b.currency+" "+n+" "+wpe_formatPrice(l,u)+b.currency+""),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table #lfb_summaryTotal>span:eq(0)').html(formatedPrice)),y=4,1==b.summary_hideQt&&--y,1==b.summary_hidePrices&&--y,f?(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table thead th:eq(1)').show().removeClass("lfb-hidden"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody tr:eq(1)').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody td.lfb_valueTd').show()):(--y,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table td.lfb_valueTd').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table thead th:eq(1)').hide().addClass("lfb-hidden")),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody tr#sfb_summaryTotalTr th[colspan]').attr("colspan",y-1),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody tr#lfb_summaryDiscountTr th[colspan]').attr("colspan",y-1),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+u+'"] #lfb_summary table tbody tr th.sfb_summaryStep').attr("colspan",y)),0 .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+r.formID+'"] > .tooltip').remove(),jQuery('#estimation_popup[data-form="'+r.formID+'"] .datetimepicker ').hide(),(0 .lfb_btnNextContainer').hide():(jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+e+'"] .lfb_btnNextContainer').fadeIn(500),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+e+'"] .lfb_btnNextContainerStripe').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #lfb_paymentMethodBtns').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #lfb_stripeForm .lfb_stripeContainer').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #lfb_stripeForm .lfb_btnNextContainer').hide()),1==r.useSignature&&(jQuery('#estimation_popup[data-form="'+r.formID+'"] #lfb_signature canvas').attr("width",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #lfb_signature').width()),jQuery('#estimation_popup[data-form="'+r.formID+'"] #lfb_signature canvas').css("width",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #lfb_signature').width()),r.signature.signature("clear"))):jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+a+'"] #mainPanel .genSlide[data-stepid="'+e+'"] .lfb_btnNextContainer').fadeIn(500),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"]').is('[data-previousstepbtn="true"]')&&"final"==e?setTimeout(function(){var t=!1;jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] .genSlide[data-stepid="'+e+'"] ').find(".btn-next,#btnOrderPaypal,#lfb_btnPayStripe,#wpe_btnOrder,#btnOrderRazorpay").each(function(){"none"!=jQuery(this).css("display")&&"none"!=jQuery(this).closest(".lfb_btnNextContainer").css("display")&&(t=!0)}),t?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] .genSlide[data-stepid="'+e+'"] ').find(".linkPrevious").css({marginTop:-15}):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] .genSlide[data-stepid="'+e+'"] ').find(".linkPrevious").css({marginTop:24}),0 .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+a+'"] > .tooltip').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"]').trigger("stepChanged"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a+'"]').attr("data-currentstep",e)},2*r.animationsSpeed+550),wpe_updatePrice(a),r.backFomFinal&&(r.backFomFinal=!1)},300)},l),jQuery("#estimation_popup :not(.ui-slider-handle) > .tooltip").remove(),jQuery("body > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+a+'"] > .tooltip').remove(),wpe_updatePrice(a)}function wpe_findPotentialsSteps(i,o){var t=wpe_getForm(o),p=new Array,s=new Array,n=new Array,d=0;return jQuery.each(t.links,function(){var t,e,a,r=this;r.originID==i&&(a=!(e=!1),a=r.conditions&&"[]"!=r.conditions?(r.conditionsO=JSON.parse(r.conditions),e=(t=lfb_checkConditions(r.conditionsO,o,i)).error,t.errorOR):(n.push(r.destinationID),!1),("OR"==r.operator&&!a||"OR"!=r.operator&&!e)&&(r.conditionsO=JSON.parse(r.conditions),s.push({stepID:parseInt(r.destinationID),nbConditions:r.conditionsO.length}),r.conditionsO.length>d&&(d=r.conditionsO.length),p.push(parseInt(r.destinationID))))}),0==i&&p.push(parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] #mainPanel .genSlide[data-start="1"]').attr("data-stepid"))),0==p.length?p.push("final"):0e.value&&(Q=!1);break;case"PriceInferior":n=parseFloat(s.data("resprice"));(s.is(".lfb_button:not(.checked)")||s.is(".selectable:not(.checked)")||s.is("input[type=checkbox]:not(:checked)")||n>=e.value)&&(j=!0),(s.is(".checked")||s.is(":checked"))&&ne.value||parseInt(s.find(".wpe_qtfield").val())>e.value)&&(Q=!1):s.is('[data-type="slider"]')&&s.is(".ui-slider")&&parseInt(s.slider("value"))>e.value&&(Q=!1),s.is("input")&&(parseInt(s.val())<=e.value&&(j=!0),parseInt(s.val())>e.value&&(Q=!1));break;case"QtInferior":(s.is(".selectable:not(.checked)")||0=e.value||0=e.value||s.is('[data-type="slider"]')&&s.is(".ui-slider")&&parseInt(s.slider("value"))>=e.value)&&(j=!0),s.is(".selectable")?(s.is(".selectable.checked")&&parseInt(s.find(".icon_quantity").html())=e.value&&(j=!0),parseInt(s.val())moment(e.value).format("YYYY-MM-DD 00:00")&&(Q=!1)):s.is('[data-datetype="time"]')?(moment(s.datetimepicker("getDate")).format("HH:mm")<=e.value&&(j=!0),moment.utc(s.datetimepicker("getDate")).format("HH:mm")>e.value&&(Q=!1)):(moment.utc(s.datetimepicker("getDate")).isSameOrBefore(moment.utc(e.value).format("YYYY-MM-DD HH:mm"))&&(j=!0),moment.utc(s.datetimepicker("getDate")).isAfter(moment.utc(e.value).format("YYYY-MM-DD HH:mm"))&&(Q=!1)):s.is(".lfb_timepicker")?(r=parseInt(e.value.substr(0,e.value.indexOf(":"))),i=parseInt(e.value.substr(e.value.indexOf(":")+1,2)),0parseFloat(e.value)&&(Q=!1)):s.is('[data-itemtype="rate"]')&&(parseFloat(s.find(".lfb_rate").rate("getValue"))<=parseFloat(e.value)&&(j=!0),parseFloat(s.find(".lfb_rate").rate("getValue"))>parseFloat(e.value)&&(Q=!1));break;case"inferior":s.is(".lfb_datepicker")?s.is('[data-datetype="date"]')?(moment.utc(s.datetimepicker("getDate")).format("YYYY-MM-DD")>=e.value&&(j=!0),moment.utc(s.datetimepicker("getDate")).format("YYYY-MM-DD")=e.value&&(j=!0),moment.utc(s.datetimepicker("getDate")).format("HH:mm")=parseFloat(e.value)&&(j=!0),parseFloat(s.val())=parseFloat(e.value)&&(j=!0),parseFloat(s.find(".lfb_rate").rate("getValue"))e.value&&(Q=!1);break;case"inferior":f>=e.value&&(j=!0),fe.value&&(Q=!1);break;case"inferior":c>=e.value&&(j=!0),cparseFloat(e.value)&&(Q=!1);break;case"inferior":parseFloat(form.price)>=parseFloat(e.value)&&(j=!0),parseFloat(form.price)e.value&&(Q=!1);break;case"inferior":c>=e.value&&(j=!0),ce.value&&(Q=!1);break;case"inferior":_>=e.value&&(j=!0),_parseInt(jQuery(this).attr("data-validmax"))&&(t=!0),jQuery(this).is("[data-validcar]")&&""!=jQuery(this).attr("data-validcar")&&(e=jQuery(this),-1parseInt(jQuery(this).attr("data-maxfiles")))&&(o=!1,jQuery(this).parent().addClass("has-error"),p||lfb_scrollToItem(jQuery(this),r,i))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"]').find('textarea[data-required="true"]:not(.lfb_disabled)').each(function(){0==jQuery(this).closest("#lfb_stripeForm").length&&0==jQuery(this).closest("#wtmt_paypalForm").length&&jQuery(this).val().length<1&&(o=!1,jQuery(this).closest(".form-group").addClass("has-error"),p||lfb_scrollToItem(jQuery(this),r,i))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"]').find('input[type=checkbox][data-required="true"]:not(.lfb_disabled)').each(function(){jQuery(this).is(":checked")||jQuery(this).is("[data-group]")&&(""==jQuery(this).attr("data-group")||0!=jQuery(' #estimation_popup[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"] [data-group="'+jQuery(this).attr("data-group")+'"]:checked').length)||(o=!1,jQuery(this).closest(".form-group,p,.itemBloc").addClass("has-error"),p||lfb_scrollToItem(jQuery(this),r,i))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"]').find('.selectable[data-required="true"]:not(.lfb_disabled)').each(function(){jQuery(this).is(".checked")||jQuery(this).is("[data-group]")&&(""==jQuery(this).attr("data-group")||0!=jQuery(' #estimation_popup[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"] [data-group="'+jQuery(this).attr("data-group")+'"].checked').length)||(o=!1,jQuery(this).find(".icon_select").addClass("lfb_error"),p||lfb_scrollToItem(jQuery(this),r,i))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"]').find('.lfb_button[data-required="true"]:not(.lfb_disabled)').each(function(){jQuery(this).is(".checked")||jQuery(this).is("[data-group]")&&(""==jQuery(this).attr("data-group")||0!=jQuery(' #estimation_popup[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+r+'"] [data-group="'+jQuery(this).attr("data-group")+'"].checked').length)||(o=!1,jQuery(this).find(".icon_select").addClass("lfb_error"),p||lfb_scrollToItem(jQuery(this),r,i))}),"final"==r&&1==t.useSignature&&0==JSON.parse(t.signature.signature("toJSON")).lines.length&&(o=!1,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_signature').addClass("has-error"),p||lfb_scrollToItem(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_signature'),r,i),p=!0),o}function wpe_nextStep(t){var e=wpe_getForm(t);jQuery("#lfb_bootstraped :not(.ui-slider-handle) > .tooltip").remove(),jQuery('#estimation_popup[data-form="'+e.formID+'"] > .tooltip').remove(),navigator.userAgent.toLowerCase().match(/(iPad|iPhone|iPod)/i)&&setTimeout(function(){jQuery("#lfb_bootstraped :not(.ui-slider-handle) > .tooltip").remove()},500),lfb_updateShowSteps(t),jQuery(".errorMsg").hide();var a,r,i=!0,o=!0,p=wpe_findPotentialsSteps(e.step,t);0 p').slideDown(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] .lfb_btnFloatingSummary').css({display:"inline-block"}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] .lfb_btnSaveForm').css({display:"inline-block"}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e.formID+'"] #btnStart').parent().fadeOut(e.animationsSpeed,function(){"2"!=e.showSteps&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"]').find(".genPrice,#lfb_stepper").fadeIn(e.animationsSpeed),e.autoStart||jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+e.formID+'"] #mainPanel').fadeIn(e.animationsSpeed+e.animationsSpeed/2,function(){wpe_nextStep(t)})})}function wpe_initListeners(i){var o=wpe_getForm(i);jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide div.selectable .img, #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide div.selectable .icon_select').click(function(){tld_selectionMode||wpe_itemClick(jQuery(this).parent(),!0,i)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide a.lfb_button').click(function(){tld_selectionMode||wpe_itemClick(jQuery(this),!0,i)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide [data-callnextstep="1"]').click(function(){!tld_selectionMode&&jQuery(this).is(".checked")&&wpe_nextStep(i)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel input[type=checkbox][data-price]').change(function(){jQuery(this).is('[data-usedistance="true"]')&&lfb_removeDistanceError(jQuery(this).attr("data-itemid"),i),wpe_updatePrice(i,jQuery(this).attr("data-itemid"))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel input[type=checkbox][data-group]').change(function(t){var e=jQuery(this);e.is(":checked")&&(jQuery(this).closest(".genSlide").find('div.selectable.checked[data-group="'+e.data("group")+'"]').each(function(){wpe_itemClick(jQuery(this),!1,i)}),jQuery(this).closest(".genSlide").find('input[type=checkbox][data-group="'+e.data("group")+'"]:checked').each(function(){jQuery(this).is(e)||jQuery(this).trigger("click.auto")}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+i+'"]').is('[data-autoclick="1"]')&&0==e.closest(".genSlide").find("[data-itemid]").not('[data-group="'+e.data("group")+'"]').length&&wpe_nextStep(wpe_getForm(i).formID))}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide select[data-itemid]').change(function(){var t=jQuery(this).val(),e=0;jQuery(this).find("option").each(function(){jQuery(this).attr("value")==t&&(e=jQuery(this).attr("data-price"))}),jQuery(this).attr("data-price",e),jQuery(this).data("price",e),wpe_updatePrice(i)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide select[data-itemid]').trigger("change"),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #mainPanel input[type=checkbox][data-price]').change(function(){}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #mainPanel .genSlide input.wpe_qtfield').change(function(){wpe_updatePrice(i,jQuery(this).attr("data-itemid"))}),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #mainPanel .genSlide').find("input[type=text][data-title],textarea[data-title],input[type=file][data-title],input[type=number][data-title]").change(function(){0');t.css({width:jQuery(this).get(0).width,height:jQuery(this).get(0).height}),jQuery(this).hide(),jQuery(this).after(t);var e=t.get(0).getContext("2d"),a=new Image;a.onload=function(){e.fillStyle=r.colorA,e.fillRect(0,0,t.get(0).width,t.get(0).height),e.fill(),e.globalCompositeOperation="destination-in",e.drawImage(a,0,0,t.get(0).width,t.get(0).height)},jQuery(this).is("[data-lazy-src]")?a.src=jQuery(this).attr("data-lazy-src"):a.src=jQuery(this).attr("src")}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #mainPanel .genSlide div.selectable img[data-tint="false"]').each(function(){jQuery(this).is("[data-src]")&&jQuery(this).attr("src",jQuery(this).attr("data-src"))}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #mainPanel .genSlide div.selectable.checked , #estimation_popup.wpe_bootstraped[data-form="'+r.formID+'"] #mainPanel .genSlide input[type=checkbox]:checked').hover(function(){jQuery(this).addClass("lfb_hover")},function(){jQuery(this).removeClass("lfb_hover")})}function lfb_getDistanceCalc(t,o,p,e,a,s){var r;google.maps.UnitSystem.METRIC;return"route"==wpe_getForm(o).distancesMode?(lfb_gmapService=new google.maps.DistanceMatrixService).getDistanceMatrix({origins:[e],destinations:[a],travelMode:google.maps.TravelMode.DRIVING,unitSystem:google.maps.UnitSystem.METRIC,avoidHighways:!1,avoidTolls:!1},function(t,e){var a,r=!1;e==google.maps.DistanceMatrixStatus.OK?(a=0,t.rows[0].elements[0].distance?(a=t.rows[0].elements[0].distance.value,a/=1e3,"miles"==s?a*=.62:"mins"==s?a=Math.round(parseInt(t.rows[0].elements[0].duration.value)/60):"hours"==s&&(a=Math.round(parseInt(t.rows[0].elements[0].duration.value)/60/60))):r=!0,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] [data-itemid="'+p+'"]'),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] [data-itemid="'+p+'"]').attr("data-distance",a),wpe_updateSummary(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] #lfb_summary table tr[data-itemstep="'+p+'"] td:eq(2)').html(a),wpe_updatePrice(o),lfb_removeDistanceError(p,o)):r=!0,r&&lfb_showDistanceError(p,o)}):(r=new google.maps.Geocoder).geocode({address:e},function(t,e){var i;void 0!==t[0]?(i=t[0].geometry.location,r.geocode({address:a},function(t,e){var a,r;void 0!==t[0]?(a=t[0].geometry.location,r=google.maps.geometry.spherical.computeDistanceBetween(i,a),r/=1e3,"miles"==s&&(r*=.62),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] [data-itemid="'+p+'"]'),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] [data-itemid="'+p+'"]').attr("data-distance",r),wpe_updateSummary(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o+'"] #lfb_summary table tr[data-itemstep="'+p+'"] td:eq(2)').html(r),wpe_updatePrice(o),lfb_removeDistanceError(p,o)):lfb_showDistanceError(p,o)})):lfb_showDistanceError(p,o)}),0}function lfb_executeCalculation(calculation,formID,targetID){calculation=calculation.replace(/\\/g,"");var form=wpe_getForm(formID),price=0,i=0,elementsToReplace=new Array,itemData=lfb_getItemData(form,targetID),_stepID=itemData.stepid;for(calculation=calculation.replace(/\[variable\]/g,"[price]"),calculation=calculation.replace(/\[quantity\]/g,"[price]"),calculation=calculation.replace(/\[value\]/g,"[price]");-1!=(i=calculation.indexOf("variable-",i+1));){var variableID=calculation.substr(i+9,calculation.indexOf("]",i)-(i+9)),value=0,variable=lfb_getVariableByID(form,variableID);variable&&(value=variable.value),elementsToReplace.push({oldValue:calculation.substr(i-1,calculation.indexOf("]",i)+1-(i-1)),newValue:value})}for(;-1!=(i=calculation.indexOf("item-",i+1));){var itemID=calculation.substr(i+5,calculation.indexOf("_",i)-(i+5)),action=calculation.substr(calculation.indexOf("_",i)+1,calculation.indexOf("]",i)-1-calculation.indexOf("_",i)),value=0,calItemData=lfb_getItemData(form,itemID),value,$item;"isChecked"==action&&(value=calItemData?"1==1":"1==0"),"isUnchecked"==action&&(value=calItemData?"1==0":"1==1"),"isFilled"==action&&(value="filefield"==calItemData.type?0

'+a.txtDistanceError+"

");var i=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e+'"] [data-itemid="'+t+'"]').closest(".genSlide").attr("data-stepid");"final"!=a.step||a.backFomFinal||(a.backFomFinal=!0,wpe_changeStep(i,e)),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+e+'"]').trigger("lfb_distanceError")}function wpe_updateLabelItem(t,e){form=wpe_getForm(e),t.is(".dropzone")||(t.closest(".itemBloc").find("label").each(function(){-1"+form.currency+wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":"+form.currency+wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":"+form.currency+wpe_formatPrice(o[n],d)+"")):"-"==jQuery(this).data("operation")?(jQuery(this).attr("title",jQuery(this).data("originaltitle")+":-"+form.currency+wpe_formatPrice(o[n],d)+""),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":-"+form.currency+wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":-"+form.currency+wpe_formatPrice(o[n],d)+"")):"x"==jQuery(this).data("operation")?(jQuery(this).attr("title",jQuery(this).data("originaltitle")+":+"+wpe_formatPrice(o[n],d)+"%"),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":+"+form.currency+wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":+"+wpe_formatPrice(o[n],d)+"%")):(jQuery(this).attr("title",jQuery(this).data("originaltitle")+":-"+wpe_formatPrice(o[n],d)+"%"),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":-"+form.currency+wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":-"+wpe_formatPrice(o[n],d)+"%")),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),wpe_updateLabelItem(jQuery(this),d)):(jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")),jQuery(this).is("[data-tooltiptext]")?jQuery(this).attr("data-original-title",jQuery(this).attr("data-tooltiptext")):jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle"))):jQuery(this).is('[data-showprice="1"]')?("+"==jQuery(this).attr("data-operation")?(jQuery(this).attr("title",jQuery(this).data("originaltitle")+":"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":"+wpe_formatPrice(o[n],d)+form.currency+"")):"-"==jQuery(this).attr("data-operation")?(jQuery(this).attr("title",jQuery(this).data("originaltitle")+":-"+ +wpe_formatPrice(o[n],d)+""),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":-"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":-"+wpe_formatPrice(o[n],d)+form.currency+"")):"x"==jQuery(this).attr("data-operation")?(jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":+"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("title",jQuery(this).data("originaltitle")+":+"+wpe_formatPrice(o[n],d)+"%"),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":+"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":+"+wpe_formatPrice(o[n],d)+"%")):(jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")+":-"+wpe_formatPrice(o[n],d)+form.currency+""),jQuery(this).attr("title",jQuery(this).data("originaltitle")+":--"+wpe_formatPrice(o[n],d)+"%"),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")+":-"+wpe_formatPrice(o[n],d)+"%")),0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).is('[data-type="slider"]')||jQuery(this).is(".lfb_button")||""!=form.imgTitlesStyle||jQuery(this).b_tooltip("fixTitle"),wpe_updateLabelItem(jQuery(this),d)):(jQuery(this).attr("data-original-label",jQuery(this).data("originallabel")),jQuery(this).is("[data-tooltiptext]")?jQuery(this).attr("data-original-title",jQuery(this).attr("data-tooltiptext")):jQuery(this).attr("data-original-title",jQuery(this).data("originaltitle")))):(jQuery(this).data("resprice",parseFloat(jQuery(this).data("price"))*parseFloat(a)),form.price=parseFloat(form.price),form.priceSingle=parseFloat(form.priceSingle),jQuery(this).is('[data-singleprice="true"]')?jQuery(this).is('[data-addtototal!="no"]')&&(form.priceSingle+=parseFloat(jQuery(this).data("price"))*parseFloat(a)):jQuery(this).is('[data-addtototal!="no"]')&&(form.price+=parseFloat(jQuery(this).data("price"))*parseFloat(a)),wpe_updateItemTitleNoReduc(jQuery(this),form)),jQuery(this).find(".quantityBtns").is(".open")&&""==form.imgTitlesStyle&&(0!=form.disableTipMobile&&wpe_is_touch_device()||jQuery(this).b_tooltip("show"))}else jQuery(this).data("resprice","0")}else jQuery(this).data("resqt","0"),jQuery(this).data("price")?("-"==jQuery(this).data("operation")?(jQuery(this).data("resprice",0-parseFloat(jQuery(this).data("price"))),jQuery(this).is('[data-singleprice="true"]')?jQuery(this).is('[data-addtototal!="no"]')&&(form.priceSingle-=parseFloat(jQuery(this).data("price"))):jQuery(this).is('[data-addtototal!="no"]')&&(form.price-=parseFloat(jQuery(this).data("price")))):"x"==jQuery(this).data("operation")?jQuery(this).is('[data-singleprice="true"]')?(jQuery(this).data("resprice",form.priceSingle*parseFloat(jQuery(this).data("price"))/100),jQuery(this).is('[data-addtototal!="no"]')&&(form.priceSingle=form.priceSingle+form.priceSingle*parseFloat(jQuery(this).data("price"))/100)):(jQuery(this).data("resprice",form.price*parseFloat(jQuery(this).data("price"))/100),jQuery(this).is('[data-addtototal!="no"]')&&(form.price=form.price+form.price*parseFloat(jQuery(this).data("price"))/100)):"/"==jQuery(this).attr("data-operation")?jQuery(this).is('[data-singleprice="true"]')?(jQuery(this).data("resprice",0-form.priceSingle*parseFloat(jQuery(this).data("price"))/100),jQuery(this).is('[data-addtototal!="no"]')&&(form.priceSingle=form.priceSingle-form.priceSingle*parseFloat(jQuery(this).data("price"))/100)):(jQuery(this).data("resprice",0-form.price*parseFloat(jQuery(this).data("price"))/100),jQuery(this).is('[data-addtototal!="no"]')&&(form.price=form.price-form.price*parseFloat(jQuery(this).data("price"))/100)):(jQuery(this).data("resprice",jQuery(this).data("price")),jQuery(this).is('[data-singleprice="true"]')?jQuery(this).is('[data-addtototal!="no"]')&&(form.priceSingle+=parseFloat(jQuery(this).data("price"))):jQuery(this).is('[data-addtototal!="no"]')&&(form.price=parseFloat(form.price)+parseFloat(jQuery(this).data("price")))),wpe_updateItemTitleNoReduc(jQuery(this),form)):jQuery(this).data("resprice","0");jQuery(this).is("[data-usecalculationvar]")&&!jQuery(this).is('[data-usecalculationvar="0"]')&&lfb_updateVariable(form,jQuery(this).attr("data-usecalculationvar"),jQuery(this).attr("data-calculationvar"),jQuery(this).attr("data-itemid"))}jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d+'"]').trigger("priceUpdated",[jQuery(this).attr("data-itemid")]),lfb_updateItemData(form,jQuery(this).attr("data-itemid"))})),m=form.price,f=form.priceSingle}0"+form.currency+wpe_formatPrice(_,d)+"
"+n+"
"+form.currency+wpe_formatPrice(y,d)+""):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').removeClass("lfb_notNull"),"left"!=form.currencyPosition&&(p=wpe_formatPrice(form.price,d)+""+form.currency,o=wpe_formatPrice(form.priceSingle,d)+""+form.currency,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"]').is("[data-totalrange]")&&0"+wpe_formatPrice(_,d)+form.currency+"
"+n+"
"+wpe_formatPrice(y,d)+form.currency+""):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').removeClass("lfb_notNull")),1==form.showTotalBottom&&(!(u&&0span.lfb_subPrice').remove(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom>br').remove()):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom').addClass("lfb_priceSingle"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom').each(function(){0==jQuery(this).find(".lfb_subPrice").length&&jQuery(this).find(">span:eq(0)").after('
+ '+p+"")})),u&&0 span:first-child').html(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span.lfb_subPrice').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span:eq(2)').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom .lfb_subTxtBottom').hide()):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span.lfb_subPrice').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span:eq(2)').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span:first-child').html(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span.lfb_subPrice').html("+ "+p),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom .lfb_subTxtBottom').show()):(form.price<=0?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom .lfb_subTxtBottom').hide():jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom .lfb_subTxtBottom').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .lfb_totalBottom> span:first-child').html(p))),0==form.showSteps&&(!(u&&0span.lfb_subPrice').remove()):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').addClass("lfb_priceSingle"),0==jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span.lfb_subPrice').length&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price>span:eq(0)').after('+ '+p+"")),u&&0 span:first-child').css("top","6px"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').html(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span.lfb_subPrice').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:eq(2)').hide()):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').css("top","-5px"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span.lfb_subPrice').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:eq(2)').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').html(o),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span.lfb_subPrice').html("+ "+p)):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"]').is('[data-isSubs="true"]')?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').css("position","relative").css("top","6px"):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').css("position","relative").css("top","0px"),0 span:first-child').css("position","relative").css("top","0px"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:eq(1)').show()):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:eq(1)').hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price> span:first-child').html(p)),0 span:first-child').length&&(8 span:first-child').html().length?16<=parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size"))&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size","16px"):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size","18px"),9 span:first-child').html().length&&14<=parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size"))&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size","14px"),10 span:first-child').html().length&&11<=parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size"))&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] .genPrice .progress .progress-bar-price').css("font-size","11px")),r=form.price,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"]').is('[data-isSubs="true"]')&&"single"==form.progressBarPriceType&&(r=form.priceSingle),i=100*r/form.priceMax,1==form.showInitialPrice&&(i=100*(r-parseFloat(form.initialPrice))/form.priceMax),100span:eq(0)').html(h),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"]').is("[data-totalrange]")&&0"+form.currency+wpe_formatPrice(_,d)+"
"+n+"
"+form.currency+wpe_formatPrice(y,d)+"","left"!=form.currencyPosition&&(b=parseInt(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"]').attr("data-totalrange")),p=s+"
"+wpe_formatPrice(_,d)+form.currency+"
"+n+"
"+wpe_formatPrice(y,d)+form.currency+""),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d+'"] #lfb_summary table #lfb_summaryTotal>span:eq(0)').html(p.replace(//g," "))),wpe_updateSummary(d),u&&0span:eq(0)').html(""+g+"")):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(2)').css("display","inline-block"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(1)').html("+"+p+form.subscriptionText),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(1)').css("display","block"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+d+'"] #lfb_summary table #lfb_summaryTotal>span:eq(0)').html(""+g+"
+"+h))):0==form.priceSingle&&0==form.price?(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(1)').css("display","none"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(2)').css("display","none"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(0)').html(p),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+form.formID+'"] #finalPrice span:eq(1)').html(form.subscriptionText)):0==form.priceSingle&&0"+e.currency+wpe_formatPrice(t.data("price"),a)+"
"),t.attr("data-original-label",t.data("originallabel")+":"+e.currency+wpe_formatPrice(t.data("price"),a)+""),t.attr("data-original-title",t.data("originaltitle")+":"+e.currency+wpe_formatPrice(t.data("price"),a)+"")):"-"==t.data("operation")?(t.attr("data-original-label",t.data("originallabel")+":-"+e.currency+wpe_formatPrice(t.data("price"),a)+""),t.attr("title",t.data("originaltitle")+":-"+e.currency+wpe_formatPrice(t.data("price"),a)+""),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-label",t.data("originallabel")+":-"+e.currency+wpe_formatPrice(t.data("price"),a)+""),t.attr("data-original-title",t.data("originaltitle")+":-"+e.currency+wpe_formatPrice(t.data("price"),a)+"")):"x"==t.data("operation")?(t.attr("title",t.data("originaltitle")+":+"+wpe_formatPrice(t.data("price"),a)+"%"),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-label",t.data("originallabel")+":+"+wpe_formatPrice(t.data("price"),a)+"%"),t.attr("data-original-title",t.data("originaltitle")+":+"+wpe_formatPrice(t.data("price"),a)+"%")):(t.attr("title",t.data("originaltitle")+":-"+wpe_formatPrice(t.data("price"),a)+"%"),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-label",t.data("originallabel")+":-"+wpe_formatPrice(t.data("price"),a)+"%"),t.attr("data-original-title",t.data("originaltitle")+":-"+wpe_formatPrice(t.data("price"),a)+"%")),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),wpe_updateLabelItem(t,a)):t.is("[data-tooltiptext]")?t.attr("data-original-title",jQuery(this).attr("data-tooltiptext")):t.attr("data-original-title",t.data("originaltitle")):t.is('[data-showprice="1"]')?("+"==t.attr("data-operation")?(t.attr("title",t.data("originaltitle")+":"+wpe_formatPrice(t.data("price"),a)+e.currency+""),t.attr("data-original-title",t.data("originaltitle")+":"+wpe_formatPrice(t.data("price"),a)+e.currency+"")):"-"==t.attr("data-operation")?(t.attr("title",t.data("originaltitle")+":-"+ +wpe_formatPrice(t.data("price"),a)+""),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-title",t.data("originaltitle")+":-"+wpe_formatPrice(t.data("price"),a)+e.currency+"")):"x"==t.attr("data-operation")?(t.attr("title",t.data("originaltitle")+":+"+wpe_formatPrice(t.data("price"),a)+"%"),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-title",t.data("originaltitle")+":+"+wpe_formatPrice(t.data("price"),a)+"%")):(t.attr("title",t.data("originaltitle")+":-"+wpe_formatPrice(t.data("price"),a)+"%"),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),t.attr("data-original-title",t.data("originaltitle")+":-"+wpe_formatPrice(t.data("price"),a)+"%")),0!=e.disableTipMobile&&wpe_is_touch_device()||t.is('[data-type="slider"]')||t.is(".lfb_button")||""!=e.imgTitlesStyle||t.b_tooltip("fixTitle"),wpe_updateLabelItem(t,a)):t.is("[data-tooltiptext]")?t.attr("data-original-title",jQuery(this).attr("data-tooltiptext")):t.attr("data-original-title",t.data("originaltitle")),0 span:first-child').html(a+"/"+t),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .genPrice .progress .progress-bar').css("width",e+"%")):3==n.showSteps&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_stepper *:not(#lfb_stepperBar)').remove(),r=!1,o=new Array,jQuery.each(lfb_plannedSteps,function(){r||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+this+'"]').is(".lfb_disabled")||!(0');jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_stepper').append(a),a.b_tooltip({html:!0,container:'#estimation_popup[data-form="'+i+'"]',placement:"bottom"}),p?a.addClass("lfb_disabledPoint"):parseInt(this)==s?(a.addClass("lfb_currentPoint"),p=!0):a.on("click",function(){lfb_returnToStep(parseInt(jQuery(this).attr("data-stepid")),i)});var r=100/o.length*t;100!=r&&0!=r||1!=o.length?r+=100/o.length/2:r=50,a.css({left:r+"%"}),parseInt(this)==s&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_stepper #lfb_stepperBar').css({width:r+"%"})}),"final"==n.step&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_stepper #lfb_stepperBar').css({width:"100%"}))}function wpe_initPanelResize(t){var e=wpe_getForm(t);jQuery(window).resize(function(){lfb_resize(e)})}function lfb_resizeAll(){jQuery(window).trigger("resize")}function lfb_resize(t){var e=jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+t.formID+'"] #mainPanel .genSlide[data-stepid="'+t.step+'"] .stepTitle').height(),a=jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+t.formID+'"] #mainPanel .genSlide[data-stepid="'+t.step+'"] .genContent').outerHeight()+parseInt(jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+t.formID+'"] #mainPanel').css("padding-bottom"))+102+e;"final"==t.step&&(a-=80),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t.formID+'"] #mainPanel').animate({minHeight:a}),1==t.useSignature&&jQuery('#estimation_popup[data-form="'+t.formID+'"] #lfb_signature canvas').attr("width",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t.formID+'"] #lfb_signature').width())}function lfb_rgb2hex(e){if(!(-1 p').slideDown()}function lfb_initRichTextValues(t){jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] .lfb_richtext[data-itemid]:not(.lfb_shortcode)').each(function(){var t=0,e=new Array;parseInt(jQuery(this).closest(".genSlide").attr("data-stepid"));if(void 0!==form.richtextsContent[jQuery(this).attr("data-itemid").toString()]){for(var a=form.richtextsContent[jQuery(this).attr("data-itemid").toString()];-1!=(t=a.indexOf("[variable-",t+1));){var r='';e.push({oldValue:a.substr(t,a.indexOf("]",t)+1-t),newValue:r})}for(t=0;-1!=(t=a.indexOf("item-",t+1));){r='';e.push({oldValue:a.substr(t-1,a.indexOf("]",t)+1-(t-1)),newValue:r})}if(-1';e.push({oldValue:a.substr(t-1,a.indexOf("]",t)+1-(t-1)),newValue:r})}if(-1';e.push({oldValue:a.substr(t-1,a.indexOf("]",t)+1-(t-1)),newValue:r})}var Q=new Date,w=Q.getMonth()+1;w<10&&(w="0"+w);Q.getFullYear().toString(),w.toString(),Q.getDate().toString();var v=wpe_forms[0].dateFormat.toUpperCase();v=(v=(v=v.replace(/\\\//g,"/")).replace(/d /g,"DD ")).replace(/yyyy/g,"YYYY"),a=(a=(a=a.replace(/\[currentDate\]/g,moment(Q).format(v))).replace(/\[total\]/g,'')).replace(/\[total_quantity\]/g,''),jQuery.each(e,function(){a=a.replace(this.oldValue,this.newValue)}),jQuery(this).html(a)}})}function lfb_updateRichTextValues(v){var I=wpe_getForm(v),D=new Date,t=D.getMonth()+1;t<10&&(t="0"+t);var S=D.getFullYear().toString()+t.toString()+D.getDate().toString();jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] .genSlide[data-stepid="'+I.step+'"] .lfb_richtext[data-itemid]:not(.lfb_shortcode) .lfb_richVariable[data-varvariableid]').each(function(){var t=jQuery(this).attr("data-varvariableid"),e=lfb_getVariableByID(I,t),a=0;e&&(a="float"==e.type?wpe_formatPrice(parseFloat(e.value),v):e.value),jQuery(this).html(a)}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] .genSlide[data-stepid="'+I.step+'"] .lfb_richtext[data-itemid]:not(.lfb_shortcode) .lfb_richVariable:not([data-varvariableid])').each(function(){var t,e,a,r,i,o,p,s,n,d,l,u,m,f,c,_,y,b=parseInt(jQuery(this).closest(".genSlide").attr("data-stepid")),h=jQuery(this).closest(".lfb_richtext").attr("data-itemid"),g=jQuery(this).attr("data-varitemid"),j=jQuery(this).attr("data-action"),Q=0,w=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]');"price"==j&&(Q=0,"total"==g?Q=I.price:(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(".checked")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(":checked")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is("select")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is('[data-type="slider"]'))&&(Q=parseFloat(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').data("resprice")),isNaN(Q)&&(Q=0)),Q=wpe_formatPrice(parseFloat(Q),v),"left"==I.currencyPosition?Q=I.currency+Q:Q+=I.currency),"title"!=j&&"label"!=j||(Q=!w.is(".lfb_disabled")&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(".checked")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(":checked")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is("select")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is('[type="text"]')||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is('[type="number"]')||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is("textarea")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(".lfb_colorPreview")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is("lfb_layeredImage")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is('[data-type="slider"]')||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(".lfb_dropzone")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is('[data-type="slider"]'))?w.attr("data-originallabel"):""),"quantity"==j&&(w.is("input")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(".checked")||jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is(":checked")?(Q=w.is("input")?w.val():0':""),"value"==j&&(Q=w.is(".lfb_disabled")?"":(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').is("select"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+v+'"] #mainPanel .genSlide [data-itemid="'+g+'"]').val())),"date"==j&&(Q=w.is(".lfb_datepicker")&&null!=w.datetimepicker("getDate")?moment.utc(w.datetimepicker("getDate")).format("YYYY-MM-DD"):"null"),"dateDifference"==j&&(t=g,e=jQuery(this).attr("data-enddateid"),t="currentDate"!=t&&0',"")).replace(" ","")).replace("","")).replace("
",""),size:12345,accepted:!0,kind:"image"},t.emit("addedfile",a),t.files.push(a),t.createThumbnailFromUrl(a,p.imgPreview,function(){t.emit("complete",a)},"anonymous")):$item.is('[data-type="numberfield"]')?0!=r&&($item.is('[data-valueasqt="1"]')?$item.val(r.quantity):$item.val(r.value)):$item.is("select")?0!=r&&$item.val(r.value):$item.is('[data-type="slider"]')?0!=r&&$item.slider("value",parseInt(r.quantity)):$item.is("textarea")?0!=r&&$item.val(r.value):$item.is('input[type="text"]')&&0!=r&&$item.val(r.value)}),t!=e?lfb_lastSteps.push(parseInt(t)):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] [data-stepid="'+t+'"] .errorMsg').hide(),"1"==p.intro_enabled?(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #startInfos > p').slideDown(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnFloatingSummary').css({display:"inline-block"}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').css({display:"inline-block"}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #btnStart').parent().fadeOut(p.animationsSpeed,function(){"2"!=p.showSteps&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"]').find(".genPrice,#lfb_stepper").fadeIn(p.animationsSpeed),jQuery(' #estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] #mainPanel').fadeIn(p.animationsSpeed+p.animationsSpeed/2,function(){wpe_changeStep(e,i)})})):wpe_changeStep(e,i))})),setTimeout(function(){jQuery('#estimation_popup.wpe_bootstraped[data-form="'+p.formID+'"] .genSlide.lfb_activeStep').css("opacity",1)},2e3)):(localStorage.removeItem("lfb_formsession"),localStorage.removeItem("lfb_savedFormID"),localStorage.removeItem("lfb_savedForm"),localStorage.removeItem("lfb_savedFormPastSteps"),localStorage.removeItem("lfb_savedFormStep"),localStorage.removeItem("lfb_savedFormTime"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fa").attr("class","fa "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fab").attr("class","fab "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fas").attr("class","fas "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),""!=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-defaulttext")&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm span:not(.fas):not(.fab):not(.fa)').html(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-defaulttext"))):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fa").attr("class","fa "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fab").attr("class","fab "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').children(".fas").attr("class","fas "+jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-originalicon")),""!=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-defaulttext")&&jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm span:not(.fas):not(.fab):not(.fa)').html(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .lfb_btnSaveForm').attr("data-defaulttext"))))}function lfb_getCalendarByID(t){var e=!1;return jQuery.each(lfb_calendars,function(){this.id==t&&(e=this)}),e}function lfb_getDisabledHours(t,i,o,a){var p=new Array,e=lfb_getCalendarByID(t);if(0!=e){var s=jQuery('#estimation_popup .lfb_datepicker[data-calendarid="'+e.id+'"]').is('[data-disableminutes="0"]'),n=parseInt(jQuery('#estimation_popup .lfb_datepicker[data-calendarid="'+e.id+'"]').attr("data-maxevents"));!isNaN(n)&&0!=n||(n=1);var d=a;"mins"==a&&(d="minutes");var r,l=new Date(i),u=new Array;if(-1=n&&-1==jQuery.inArray(e,p)&&p.push(parseInt(e)))}})}}return p}function lfb_getDisabledMinutes(t,i,o,p,e){var s=new Array,a=lfb_getCalendarByID(t);if(0!=a){var n=parseInt(jQuery('#estimation_popup .lfb_datepicker[data-calendarid="'+a.id+'"]').attr("data-maxevents"));!isNaN(n)&&0!=n||(n=1);var r=lfb_getDisabledHours(t,i,p,e),d=e;"mins"==e&&(d="minutes");var l=jQuery('#estimation_popup .lfb_datepicker[data-calendarid="'+a.id+'"]').attr("data-hoursdisabled");if(-1=n&&-1==jQuery.inArray(5*r,s)&&s.push(parseInt(5*r));else if(a.isSame(t,"hour"))for(r=0;r<=11;r++)t.isSame(moment(this.endDate),"hour")?5*r>=t.format("mm")&&5*r=n&&-1==jQuery.inArray(5*r,s)&&s.push(parseInt(5*r))):5*r>=t.format("mm")&&(m[parseInt(5*r)]++,m[parseInt(5*r)]>=n&&-1==jQuery.inArray(5*r,s)&&s.push(parseInt(5*r)));else if(a.isSame(moment(this.endDate),"hour"))for(r=0;r<=11;r++)5*r=n&&-1==jQuery.inArray(5*r,s)&&s.push(parseInt(5*r)))})}return s}function lfb_setAnimImmediate(t){wpe_getForm(t).animationsSpeed=0}function lfb_getCalendarEventsAtDate(t,a){var r=0;return jQuery.each(t.events,function(){var t=moment.utc(this.startDate),e=moment.utc(this.endDate);a.isSameOrAfter(t)&&a.isSameOrBefore(e)&&r++}),r}function lfb_getBusyDates(t,e){var a=wpe_getForm(t);jQuery.ajax({url:a.ajaxurl,type:"post",data:{action:"lfb_getBusyDates",formID:t,calendarsIDs:e},success:function(t){t=t.trim(),t=JSON.parse(t,!0),lfb_calendars=t.calendars,jQuery.each(t.calendars,function(){var s=this;jQuery('#estimation_popup .lfb_datepicker[data-calendarid="'+this.id+'"]').each(function(){_datepicker=jQuery(this);var p=new Array;jQuery.each(s.events,function(){if(1==this.fullDay){var t=moment.utc(this.startDate),e=moment.utc(this.endDate),a=t.format("YYYY-MM-DD");lfb_getCalendarEventsAtDate(s,t)>=_datepicker.attr("data-maxevents")&&p.push(a);for(var r=1;r<=e.diff(t,"days");r++){var i=t.add(r,"days");lfb_getCalendarEventsAtDate(s,i)>=_datepicker.attr("data-maxevents")&&p.push(i.format("YYYY-MM-DD"))}}else{t=moment.utc(this.startDate),_datepicker.attr("data-eventdurationtype");"mins"==_datepicker.attr("data-eventdurationtype")&&0,this.startDate=t.format("YYYY-MM-DD HH:mm");e=moment.utc(this.endDate),a=t.format("YYYY-MM-DD");if(1<=e.diff(t,"days")){var o=1;0==t.format("m")&&(o=0);for(r=o;r<=e.diff(t,"days");r++){i=t.clone().add(r,"days");p.push(i.format("YYYY-MM-DD"))}}}}),_datepicker.datetimepicker("setDatesDisabled",p)})})}})}function lfb_showWinStripePayment(o){var t=lfb_checkStepItemsValid("final",o.formID);1==o.legalNoticeEnable&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_legalCheckbox').is(":checked")||(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_legalCheckbox').closest(".form-group").addClass("has-error"),t=!1)),t&&lfb_checkCaptcha(o,function(){var t,a,r,e,i=!0;jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] [data-activatePaypal="true"]:not(:checked):not(.checked)').each(function(){var t=jQuery(this).closest(".genSlide").attr("data-stepid");"final"!=t&&(t=parseInt(t)),-1==jQuery.inArray(t,lfb_lastSteps)||(i=!1)}),0"+lfb_formatPriceWithCurrency(a=parseFloat(a)*(parseFloat(o.percentToPay)/100),o.formID)+"",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-info="amount"]').html(e)):"fixed"==o.payMode&&(e=""+lfb_formatPriceWithCurrency(a=parseFloat(o.fixedToPay),o.formID)+"",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-info="amount"]').html(e)),""==o.stripeToken||void 0!==o.stripeAmountSingle&&o.stripeAmountSingle!=a||void 0!==o.stripeAmountSingle&&o.stripeAmountSub!=r?jQuery.ajax({url:o.ajaxurl,type:"post",data:{action:"lfb_getStripePaymentIntent",singleTotal:a,subTotal:r,formID:o.formID,customerInfos:wpe_getContactInformations(o.formID,!0)},success:function(t){t=JSON.parse(t),o.stripeToken=t.token,o.stripeCustomerID=t.customerID,o.stripeAmountSingle=a,o.stripeAmountSub=r;var e=lfb_stripe.elements();o.cardElement=e.create("cardNumber"),o.cardElement.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-element'),o.cardExp=e.create("cardExpiry"),o.cardExp.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_expiration-element'),o.cardExp.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),o.cardCvc=e.create("cardCvc"),o.cardCvc.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_cvc-element'),o.cardCvc.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),o.cardElement.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal [data-panel]").hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-panel="form"]').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal .modal-footer").slideDown()}}):(t=lfb_stripe.elements(),o.cardElement=t.create("cardNumber"),o.cardElement.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-element'),o.cardElement.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),o.cardExp=t.create("cardExpiry"),o.cardExp.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_expiration-element'),o.cardExp.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),o.cardCvc=t.create("cardCvc"),o.cardCvc.mount('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_cvc-element'),o.cardCvc.addEventListener("change",function(t){t.error?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html(t.error.message):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripe_card-error').html("")}),a=parseFloat(o.price),r=0,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').is('[data-isSubs="true"]')&&(a=parseFloat(o.priceSingle),r=parseFloat(o.price)),"percent"==o.payMode?(e=""+lfb_formatPriceWithCurrency(a=parseFloat(a)*(parseFloat(o.percentToPay)/100),o.formID)+"",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-info="amount"]').html(e)):"fixed"==o.payMode&&(e=""+lfb_formatPriceWithCurrency(a=parseFloat(o.fixedToPay),o.formID)+"",jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-info="amount"]').html(e)),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal [data-panel]").hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-panel="form"]').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal .modal-footer").slideDown()),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripeModal a[data-action="pay"]').unbind("click"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripeModal a[data-action="pay"]').click(function(){var t=!1;jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripeModal .has-error').removeClass("has-error"),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripeModal [name="ownerName"]').val().length<3&&(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] #lfb_stripeModal [name="ownerName"]').closest(".form-group").addClass("has-error"),t=!0),t||(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal [data-panel]").hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-panel="loading"]').show(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal .modal-footer").hide(),lfb_stripe.createSource(o.cardElement).then(function(t){t.error?(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"] [data-info="error"]').html(t.error.message),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find("#lfb_stripeModal [data-panel]").hide(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+o.formID+'"]').find('#lfb_stripeModal [data-panel="fail"]').show()):(o.stripeSrc=t.source.id,0
')).append('
'),e.append('"),r.closest(".form-group").after(e),jQuery("#lfb_forgotPassLink").on("click",function(){wpe_checkEmail(r.val())&&(r.attr("disabled","disabled"),jQuery.ajax({url:a.ajaxurl,type:"post",data:{action:"lfb_forgotPassManD",email:a.emailProposed},success:function(t){jQuery("#lfb_passModal").modal("show")}}))}),jQuery('#estimation_popup[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassCt').slideDown()):(jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassField').val(""),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassField').closest(".form-group").addClass("has-error")),setTimeout(function(){jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"]').is(".wpe_fullscreen")?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"]').animate({scrollTop:jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"] .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassCt').offset().top-(120+parseInt(a.scrollTopMargin))},2*a.animationsSpeed):jQuery("body,html").animate({scrollTop:jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"] .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassCt').offset().top-(120+parseInt(a.scrollTopMargin))},2*a.animationsSpeed)},350)):(a.verifiedEmail=a.emailProposed,jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] #lfb_forgotPassCt').removeClass("lfb_open").slideUp(),jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] [data-fieldtype="email"][data-required="true"]').last().attr("disabled","disabled"),"final"==a.step?0==jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_paymentMethodBtns').length&&("none"!=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] .genSlide[data-stepid="'+a.step+'"] .lfb_btnNextContainer').css("display")?jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #wpe_btnOrder').trigger("click"):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #btnOrderPaypal, #estimation_popup.wpe_bootstraped[data-form="'+i+'"] #lfb_btnPayStripe,#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #btnOrderRazorpay').trigger("click")):jQuery('#estimation_popup.wpe_bootstraped[data-form="'+i+'"] #mainPanel .genSlide[data-stepid="'+a.step+'"] .btn-next').trigger("click"))}})):0/g,"[n]"),i[1]),p=i[2],s=wpe_getContactInformations(t);email=jQuery('#estimation_popup.wpe_bootstraped[data-form="'+t+'"] .emailField').val(),wpe_checkEmail(s.email)&&(email=s.email);var n="";jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"] #finalSlide').find('.lfb_item input:not([type="checkbox"])[data-itemid],.lfb_item textarea[data-itemid],.lfb_item select[data-itemid]').each(function(){var t;0==jQuery(this).closest("#wtmt_paypalForm").length&&(jQuery(this).is(".lfb_disabled")||jQuery(this).is("#lfb_couponField")||jQuery(this).is("#lfb_captchaField")||(t=":",jQuery(this).closest(".lfb_item").find("label").html().lastIndexOf(":")==jQuery(this).closest(".lfb_item").find("label").html().length-1&&(t=""),jQuery("body").is(".rtl")?n+='

'+jQuery(this).val()+""+t+" "+jQuery(this).closest(".lfb_item").find("label").html()+"

":n+="

"+jQuery(this).closest(".lfb_item").find("label").html()+" "+t+' '+jQuery(this).val()+"

"))}),jQuery.ajax({url:a.ajaxurl,type:"post",data:{action:"lfb_downloadOrderPDF",formID:a.formID,informations:n,email:email,customerInfos:wpe_getContactInformations(a.formID,!0),summary:r,totalTxt:o,formSession:jQuery('#estimation_popup.wpe_bootstraped[data-form="'+a.formID+'"] #lfb_formSession').val(),items:p,useRtl:jQuery("body").is(".rtl"),variables:JSON.stringify(a.variables)},success:function(t){var e=window.open(a.homeUrl+"/index.php?EPFormsBuilder=downloadMyOrder","_blank");"null"!=typeof e&&null!=e&&(e.focus(),setTimeout(function(){e.close()},300))}})}function lfb_updateVAT(t){var e=wpe_getForm(t);e.vatPrice=0,e.useVAT&&"final"==e.step&&(0.container-wrap").css({opacity:1,display:"block"}),jQuery("#estimation_popup canvas.img").each(function(){jQuery(this).parent().children("img").css("opacity",0),jQuery(this).parent().children("img").show(),jQuery(this).css({width:jQuery(this).parent().children("img").get(0).width,height:jQuery(this).parent().children("img").get(0).height}),jQuery(this).parent().children("img").hide()}),jQuery.each(wpe_forms,function(){var t,e=this;1==e.useCaptcha&&""!=e.recaptcha3Key&&0parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.adjustOffset=function(){var e=r.getElementById("coronabar"),t=r.getElementById("wpadminbar"),n=0,i=0;"top"===cnArgs.position&&null!==t&&(i=t.offsetHeight,this.noticeContainer.style.top=i+"px"),null!==e&&(n=e.offsetHeight-1,"top"===cnArgs.position?(e.style.top=i+"px",this.noticeContainer.style.top=n+i+"px"):this.noticeContainer.style.bottom=n+"px")},this.getClosest=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1this._items.length-1||e<0))if(this._isSliding)p(this._element).one(V.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n=i.clientWidth&&n>=i.clientHeight}),u=0l[e]&&!i.escapeWithReference&&(n=Math.min(h[t],l[e]-("right"===e?h.width:h.height))),Ye({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";h=ze({},h,u[t](e))}),e.offsets.popper=h,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]r(i[a])&&(e.offsets.popper[l]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!gt(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",h=l?"Top":"Left",u=h.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",p=nt(i)[c];a[d]-ps[d]&&(e.offsets.popper[u]+=a[u]+p-s[d]),e.offsets.popper=Xe(e.offsets.popper);var m=a[u]+a[c]/2-p/2,g=ke(e.instance.popper),_=parseFloat(g["margin"+h],10),v=parseFloat(g["border"+h+"Width"],10),y=m-e.offsets.popper[u]-_-v;return y=Math.max(Math.min(s[c]-p,y),0),e.arrowElement=i,e.offsets.arrow=(Ye(n={},u,Math.round(y)),Ye(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(m,g){if(at(m.instance.modifiers,"inner"))return m;if(m.flipped&&m.placement===m.originalPlacement)return m;var _=Ze(m.instance.popper,m.instance.reference,g.padding,g.boundariesElement,m.positionFixed),v=m.placement.split("-")[0],y=it(v),E=m.placement.split("-")[1]||"",b=[];switch(g.behavior){case Et:b=[v,y];break;case bt:b=yt(v);break;case wt:b=yt(v,!0);break;default:b=g.behavior}return b.forEach(function(e,t){if(v!==e||b.length===t+1)return m;v=m.placement.split("-")[0],y=it(v);var n=m.offsets.popper,i=m.offsets.reference,o=Math.floor,r="left"===v&&o(n.right)>o(i.left)||"right"===v&&o(n.left)o(i.top)||"bottom"===v&&o(n.top)o(_.right),l=o(n.top)o(_.bottom),h="left"===v&&s||"right"===v&&a||"top"===v&&l||"bottom"===v&&c,u=-1!==["top","bottom"].indexOf(v),f=!!g.flipVariations&&(u&&"start"===E&&s||u&&"end"===E&&a||!u&&"start"===E&&l||!u&&"end"===E&&c),d=!!g.flipVariationsByContent&&(u&&"start"===E&&a||u&&"end"===E&&s||!u&&"start"===E&&c||!u&&"end"===E&&l),p=f||d;(r||h||p)&&(m.flipped=!0,(r||h)&&(v=b[t+1]),p&&(E=function(e){return"end"===e?"start":"start"===e?"end":e}(E)),m.placement=v+(E?"-"+E:""),m.offsets.popper=ze({},m.offsets.popper,ot(m.instance.popper,m.offsets.reference,m.placement)),m=st(m.instance.modifiers,m,"flip"))}),m},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),e.placement=it(t),e.offsets.popper=Xe(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!gt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=rt(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Cn,popperConfig:null},Fn="show",Mn="out",Wn={HIDE:"hide"+Nn,HIDDEN:"hidden"+Nn,SHOW:"show"+Nn,SHOWN:"shown"+Nn,INSERTED:"inserted"+Nn,CLICK:"click"+Nn,FOCUSIN:"focusin"+Nn,FOCUSOUT:"focusout"+Nn,MOUSEENTER:"mouseenter"+Nn,MOUSELEAVE:"mouseleave"+Nn},Un="fade",Bn="show",qn=".tooltip-inner",Kn=".arrow",Qn="hover",Vn="focus",Yn="click",zn="manual",Xn=function(){function i(e,t){if("undefined"==typeof St)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Bn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=m.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&p(o).addClass(Un);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(o).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(o).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new St(this.element,o,this._getPopperConfig(a)),p(o).addClass(Bn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===Mn&&t._leave(null,t)};if(p(this.tip).hasClass(Un)){var h=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(e){function t(){n._hoverState!==Fn&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),o=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(o),!o.isDefaultPrevented()){if(p(i).removeClass(Bn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Yn]=!1,this._activeTrigger[Vn]=!1,this._activeTrigger[Qn]=!1,p(this.tip).hasClass(Un)){var r=m.getTransitionDurationFromElement(i);p(i).one(m.TRANSITION_END,t).emulateTransitionEnd(r)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Ln+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(qn)),this.getTitle()),p(e).removeClass(Un+" "+Bn)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=In(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Kn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Hn[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==zn){var t=e===Qn?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Qn?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),this._hideModalHandler=function(){i.element&&i.hide()},p(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Vn:Qn]=!0),p(t.getTipElement()).hasClass(Bn)||t._hoverState===Fn?t._hoverState=Fn:(clearTimeout(t._timeout),t._hoverState=Fn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Fn&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Vn:Qn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Mn,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Mn&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==xn.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,{},t,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(An,e,this.constructor.DefaultType),e.sanitize&&(e.template=In(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Pn);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Un),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(On),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),p(this).data(On,e)),"string"==typeof n)){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Rn}},{key:"NAME",get:function(){return An}},{key:"DATA_KEY",get:function(){return On}},{key:"Event",get:function(){return Wn}},{key:"EVENT_KEY",get:function(){return Nn}},{key:"DefaultType",get:function(){return jn}}]),i}();p.fn[An]=Xn._jQueryInterface,p.fn[An].Constructor=Xn,p.fn[An].noConflict=function(){return p.fn[An]=kn,Xn._jQueryInterface};var Gn="popover",$n="bs.popover",Jn="."+$n,Zn=p.fn[Gn],ei="bs-popover",ti=new RegExp("(^|\\s)"+ei+"\\S+","g"),ni=l({},Xn.Default,{placement:"right",trigger:"click",content:"",template:''}),ii=l({},Xn.DefaultType,{content:"(string|element|function)"}),oi="fade",ri="show",si=".popover-header",ai=".popover-body",li={HIDE:"hide"+Jn,HIDDEN:"hidden"+Jn,SHOW:"show"+Jn,SHOWN:"shown"+Jn,INSERTED:"inserted"+Jn,CLICK:"click"+Jn,FOCUSIN:"focusin"+Jn,FOCUSOUT:"focusout"+Jn,MOUSEENTER:"mouseenter"+Jn,MOUSELEAVE:"mouseleave"+Jn},ci=function(e){function i(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(i,e);var t=i.prototype;return t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(e){p(this.getTipElement()).addClass(ei+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(si),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ai),t),e.removeClass(oi+" "+ri)},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(ti);null!==t&&0=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||e 0; i--){ var j=Math.floor(Math.random() * (i + 1)); var tmp=a[i]; a[i]=a[j]; a[j]=tmp; } return a.join(""); } var WPDM={ init: function($){ }, beep: function(){ if(WPDM.audio==undefined) var snd=new Audio("data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgAI0wWs/ItAAAGDgYtAgAyN+QWaAAihwMWm4G8QQRDiMcCBcH3Cc+CDv/7xA4Tvh9Rz/y8QADBwMWgQAZG/ILNAARQ4GLTcDeIIIhxGOBAuD7hOfBB3/94gcJ3w+o5/5eIAIAAAVwWgQAVQ2ORaIQwEMAJiDg95G4nQL7mQVWI6GwRcfsZAcsKkJvxgxEjzFUgfHoSQ9Qq7KNwqHwuB13MA4a1q/DmBrHgPcmjiGoh//EwC5nGPEmS4RcfkVKOhJf+WOgoxJclFz3kgn//dBA+ya1GhurNn8zb//9NNutNuhz31f////9vt///z+IdAEAAAK4LQIAKobHItEIYCGAExBwe8jcToF9zIKrEdDYIuP2MgOWFSE34wYiR5iqQPj0JIeoVdlG4VD4XA67mAcNa1fhzA1jwHuTRxDUQ//iYBczjHiTJcIuPyKlHQkv/LHQUYkuSi57yQT//uggfZNajQ3Vmz+Zt//+mm3Wm3Q576v////+32///5/EOgAAADVghQAAAAA//uQZAUAB1WI0PZugAAAAAoQwAAAEk3nRd2qAAAAACiDgAAAAAAABCqEEQRLCgwpBGMlJkIz8jKhGvj4k6jzRnqasNKIeoh5gI7BJaC1A1AoNBjJgbyApVS4IDlZgDU5WUAxEKDNmmALHzZp0Fkz1FMTmGFl1FMEyodIavcCAUHDWrKAIA4aa2oCgILEBupZgHvAhEBcZ6joQBxS76AgccrFlczBvKLC0QI2cBoCFvfTDAo7eoOQInqDPBtvrDEZBNYN5xwNwxQRfw8ZQ5wQVLvO8OYU+mHvFLlDh05Mdg7BT6YrRPpCBznMB2r//xKJjyyOh+cImr2/4doscwD6neZjuZR4AgAABYAAAABy1xcdQtxYBYYZdifkUDgzzXaXn98Z0oi9ILU5mBjFANmRwlVJ3/6jYDAmxaiDG3/6xjQQCCKkRb/6kg/wW+kSJ5//rLobkLSiKmqP/0ikJuDaSaSf/6JiLYLEYnW/+kXg1WRVJL/9EmQ1YZIsv/6Qzwy5qk7/+tEU0nkls3/zIUMPKNX/6yZLf+kFgAfgGyLFAUwY//uQZAUABcd5UiNPVXAAAApAAAAAE0VZQKw9ISAAACgAAAAAVQIygIElVrFkBS+Jhi+EAuu+lKAkYUEIsmEAEoMeDmCETMvfSHTGkF5RWH7kz/ESHWPAq/kcCRhqBtMdokPdM7vil7RG98A2sc7zO6ZvTdM7pmOUAZTnJW+NXxqmd41dqJ6mLTXxrPpnV8avaIf5SvL7pndPvPpndJR9Kuu8fePvuiuhorgWjp7Mf/PRjxcFCPDkW31srioCExivv9lcwKEaHsf/7ow2Fl1T/9RkXgEhYElAoCLFtMArxwivDJJ+bR1HTKJdlEoTELCIqgEwVGSQ+hIm0NbK8WXcTEI0UPoa2NbG4y2K00JEWbZavJXkYaqo9CRHS55FcZTjKEk3NKoCYUnSQ0rWxrZbFKbKIhOKPZe1cJKzZSaQrIyULHDZmV5K4xySsDRKWOruanGtjLJXFEmwaIbDLX0hIPBUQPVFVkQkDoUNfSoDgQGKPekoxeGzA4DUvnn4bxzcZrtJyipKfPNy5w+9lnXwgqsiyHNeSVpemw4bWb9psYeq//uQZBoABQt4yMVxYAIAAAkQoAAAHvYpL5m6AAgAACXDAAAAD59jblTirQe9upFsmZbpMudy7Lz1X1DYsxOOSWpfPqNX2WqktK0DMvuGwlbNj44TleLPQ+Gsfb+GOWOKJoIrWb3cIMeeON6lz2umTqMXV8Mj30yWPpjoSa9ujK8SyeJP5y5mOW1D6hvLepeveEAEDo0mgCRClOEgANv3B9a6fikgUSu/DmAMATrGx7nng5p5iimPNZsfQLYB2sDLIkzRKZOHGAaUyDcpFBSLG9MCQALgAIgQs2YunOszLSAyQYPVC2YdGGeHD2dTdJk1pAHGAWDjnkcLKFymS3RQZTInzySoBwMG0QueC3gMsCEYxUqlrcxK6k1LQQcsmyYeQPdC2YfuGPASCBkcVMQQqpVJshui1tkXQJQV0OXGAZMXSOEEBRirXbVRQW7ugq7IM7rPWSZyDlM3IuNEkxzCOJ0ny2ThNkyRai1b6ev//3dzNGzNb//4uAvHT5sURcZCFcuKLhOFs8mLAAEAt4UWAAIABAAAAAB4qbHo0tIjVkUU//uQZAwABfSFz3ZqQAAAAAngwAAAE1HjMp2qAAAAACZDgAAAD5UkTE1UgZEUExqYynN1qZvqIOREEFmBcJQkwdxiFtw0qEOkGYfRDifBui9MQg4QAHAqWtAWHoCxu1Yf4VfWLPIM2mHDFsbQEVGwyqQoQcwnfHeIkNt9YnkiaS1oizycqJrx4KOQjahZxWbcZgztj2c49nKmkId44S71j0c8eV9yDK6uPRzx5X18eDvjvQ6yKo9ZSS6l//8elePK/Lf//IInrOF/FvDoADYAGBMGb7FtErm5MXMlmPAJQVgWta7Zx2go+8xJ0UiCb8LHHdftWyLJE0QIAIsI+UbXu67dZMjmgDGCGl1H+vpF4NSDckSIkk7Vd+sxEhBQMRU8j/12UIRhzSaUdQ+rQU5kGeFxm+hb1oh6pWWmv3uvmReDl0UnvtapVaIzo1jZbf/pD6ElLqSX+rUmOQNpJFa/r+sa4e/pBlAABoAAAAA3CUgShLdGIxsY7AUABPRrgCABdDuQ5GC7DqPQCgbbJUAoRSUj+NIEig0YfyWUho1VBBBA//uQZB4ABZx5zfMakeAAAAmwAAAAF5F3P0w9GtAAACfAAAAAwLhMDmAYWMgVEG1U0FIGCBgXBXAtfMH10000EEEEEECUBYln03TTTdNBDZopopYvrTTdNa325mImNg3TTPV9q3pmY0xoO6bv3r00y+IDGid/9aaaZTGMuj9mpu9Mpio1dXrr5HERTZSmqU36A3CumzN/9Robv/Xx4v9ijkSRSNLQhAWumap82WRSBUqXStV/YcS+XVLnSS+WLDroqArFkMEsAS+eWmrUzrO0oEmE40RlMZ5+ODIkAyKAGUwZ3mVKmcamcJnMW26MRPgUw6j+LkhyHGVGYjSUUKNpuJUQoOIAyDvEyG8S5yfK6dhZc0Tx1KI/gviKL6qvvFs1+bWtaz58uUNnryq6kt5RzOCkPWlVqVX2a/EEBUdU1KrXLf40GoiiFXK///qpoiDXrOgqDR38JB0bw7SoL+ZB9o1RCkQjQ2CBYZKd/+VJxZRRZlqSkKiws0WFxUyCwsKiMy7hUVFhIaCrNQsKkTIsLivwKKigsj8XYlwt/WKi2N4d//uQRCSAAjURNIHpMZBGYiaQPSYyAAABLAAAAAAAACWAAAAApUF/Mg+0aohSIRobBAsMlO//Kk4soosy1JSFRYWaLC4qZBYWFRGZdwqKiwkNBVmoWFSJkWFxX4FFRQWR+LsS4W/rFRb/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAU291bmRib3kuZGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjAwNGh0dHA6Ly93d3cuc291bmRib3kuZGUAAAAAAAAAACU="); else var snd=new Audio(WPDM.audio); snd.play(); }, uniqueID: function(){ var uniq=Date.now()+"abcdefghijklmnopqrstuvwxyz_"; uniq=uniq.wpdm_shuffle(); uniq=uniq.substring(1, 10); return uniq; }, popupWindow: function(url, title, w, h){ var dualScreenLeft=window.screenLeft!=undefined ? window.screenLeft:screen.left; var dualScreenTop=window.screenTop!=undefined ? window.screenTop:screen.top; var width=window.innerWidth ? window.innerWidth:document.documentElement.clientWidth ? document.documentElement.clientWidth:screen.width; var height=window.innerHeight ? window.innerHeight:document.documentElement.clientHeight ? document.documentElement.clientHeight:screen.height; var left=((width / 2) - (w / 2)) + dualScreenLeft; var top=((height / 2) - (h / 2)) + dualScreenTop; var newWindow=window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); if(window.focus){ newWindow.focus(); } return false; }, bootAlert: function(heading, content, width){ var html; if(!width) width=400; var modal_id='__bootModal_' + WPDM.uniqueID(); html='
'; jQuery('body').append(html); jQuery("#"+modal_id).modal({show: true, backdrop: 'static'}); return jQuery("#"+modal_id); }, pushNotify: function(title, message, icon, image, url){ if(!('Notification' in window)||!('ServiceWorkerRegistration' in window)){ return; } Notification.requestPermission(function (result){ if(result==='granted'){ console.log('Notification: ' + result); try { var notification=new Notification(title, {body: message, icon: icon?icon:'https://cdn1.iconfinder.com/data/icons/hawcons/32/698558-icon-47-note-important-512.png', image: image?image:''}); if(url){ notification.onclick=function (e){ e.preventDefault(); window.open(url, '_blank'); };}} catch (err){ console.log('Notification API error: ' + err); }}else{ console.log('Notification: ' + result); }}); }, notify: function(message, type, position, autoclose){ var $=jQuery; if(type===undefined||!type) type='info'; if(position===undefined||!position) position='top-right'; if(type==='danger') type='error'; var notifycont=position.indexOf('#') >=0 ? position:'#wpdm-notify-'+position ; if($(notifycont).length==0) $('body').prepend("
"); var notif=$(""); $(notifycont).append(notif); $(notif).fadeIn(); if(autoclose!==undefined){ setTimeout(function (){ $(notif).animate({ opacity: 0 }, 1000, function(){ $(this).slideUp(); }); }, autoclose); } return $(notif); }, floatify: function(html, position){ var $=jQuery; if(position===undefined||!position) position='top-right'; var floatifycont='#wpdm-floatify-'+position; if($(floatifycont).length==0) $('body').prepend("
"); var floatify=$("
"+html+"
"); $(floatifycont).append(floatify); $(floatify).animate({marginRight: '0px'}); return $(floatify); }, blockUI: function(element, xhr){ jQuery(element).addClass("blockui"); if(xhr) xhr.addEventListener("load", function (){ jQuery(element).removeClass("blockui"); }); }, unblockUI: function(element){ jQuery(element).removeClass("blockui"); }, overlay: function(element, html){ var $=jQuery; var overlaycontent=$(""); $(element).addClass('wpdm-overlay').append(overlaycontent); $(overlaycontent).fadeIn(); $('body').on('click', '.wpdm-overlay-close', function (){ $(overlaycontent).fadeOut(function (){ $(this).remove(); }); }); return $(overlaycontent); }, confirm: function(heading, content, buttons){ var html, $=jQuery; var modal_id='__boot_popup_' + WPDM.uniqueID(); $("#w3eden__boot_popup").remove(); var _buttons=''; if(buttons){ _buttons='\n'; } html='
'; $('body').append(html); $("#"+modal_id).modal('show'); $.each(buttons, function (i, button){ var id='btx_'+i; $('#'+id).unbind('click'); $('#'+id).bind('click' , function (){ button.callback.call($("#"+modal_id)); return false; }); }); return $("#"+modal_id); }, audioUI: function(audio){ var $=jQuery, song_length, song_length_m, song_length_s; if(parseInt(wpdm_asset.bsversion)!==3) var player_html='
'; else var player_html='
'; if(audio.duration!==Infinity){ song_length=parseInt(audio.duration); song_length_m=parseInt(song_length / 60); song_length_s=song_length - (song_length_m * 60); song_length_m=song_length_m > 9 ? song_length_m:"0" + song_length_m; song_length_s=song_length_s > 9 ? song_length_s:"0" + song_length_s; }else{ song_length_m="--"; song_length_s="--"; audio.addEventListener("durationchange", function (e){ console.log(this.duration); if(this.duration!==Infinity){ song_length=parseInt(this.duration); song_length_m=parseInt(song_length / 60); song_length_s=song_length - (song_length_m * 60); song_length_m=song_length_m > 9 ? song_length_m:"0" + song_length_m; song_length_s=song_length_s > 9 ? song_length_s:"0" + song_length_s; $('#mins').html(song_length_m+":"+song_length_s); next(song_length); }}, false); } if($('#wpdm-audio-player-ui').length===0){ $('body').append(player_html); $("#wpdm-audio-player-ui").slideDown(); $('#mins').html(song_length_m+":"+song_length_s); $('body').on('click', '#wpdm-audio-player-ui .progress', function(e){ let value=e.offsetX * 100 / this.clientWidth; var played=parseInt(song_length*value/100); var played_m=parseInt(played/60); var played_s=played - (played_m*60); played_m=played_m > 9 ? played_m:"0"+played_m; played_s=played_s > 9 ? played_s:"0"+played_s; $('#played').html(played_m+":"+played_s); audio.currentTime=(song_length*value)/100; $(this).find('.progress-bar').css('width', value + "%"); }); $('body').on('click', '#wpdm-btn-backward', function(){ let value=(parseInt($('#wpdm-audio-player-ui .progress-bar').css('width'))/parseInt($('#wpdm-audio-player-ui .progress').css('width')))*100 - 10; if(value < 0) value=0; var played=parseInt(song_length*value/100); var played_m=parseInt(played/60); var played_s=played - (played_m*60); played_m=played_m > 9 ? played_m:"0"+played_m; played_s=played_s > 9 ? played_s:"0"+played_s; $('#played').html(played_m+":"+played_s); audio.currentTime=(song_length*value)/100; $('#wpdm-audio-player-ui .progress-bar').css('width', value + "%"); }); $('body').on('click', '#wpdm-btn-forward', function(){ let value=(parseInt($('#wpdm-audio-player-ui .progress-bar').css('width'))/parseInt($('#wpdm-audio-player-ui .progress').css('width')))*100 + 10; if(value > 100) value=100; var played=parseInt(song_length*value/100); var played_m=parseInt(played/60); var played_s=played - (played_m*60); played_m=played_m > 9 ? played_m:"0"+played_m; played_s=played_s > 9 ? played_s:"0"+played_s; $('#played').html(played_m+":"+played_s); audio.currentTime=(song_length*value)/100; $('#wpdm-audio-player-ui .progress-bar').css('width', value + "%"); }); $('#wpdm-btn-volumctrl').on('click', function(){ $(this).next('.volumctrl').toggle(); }); $('body').on('click', '.btn-play', function(){ if($(this).find('.fa').hasClass('fa-play')){ $(this).find('.fa').addClass('fa-pause').removeClass('fa-play'); $(this).data('state', 'playing'); audio.play(); }else{ $(this).find('.fa').addClass('fa-play').removeClass('fa-pause'); $(this).data('state', 'paused'); audio.pause(); }}); $('body').on('change', '#wpdm-audio-volume', function (){ audio.volume=this.value; }); } $('#mins').html(song_length_m+":"+song_length_s); audio.addEventListener("play", function(){ $('#wpdm-btn-play').find('.fa').addClass('fa-pause').removeClass('fa-play'); }); audio.addEventListener("pause", function(){ $('#wpdm-btn-play').find('.fa').addClass('fa-play').removeClass('fa-pause'); }); audio.addEventListener("timeupdate", function(e){ var song_length=parseInt(audio.duration); var time_now=audio.currentTime; var percent=(time_now/song_length)*100; if(percent > 100) percent=100; $('#wpdm-audio-progress').css('width', percent+"%"); var played=parseInt(time_now); var played_m=parseInt(played/60); var played_s=played - (played_m*60); played_m=played_m > 9 ? played_m:"0"+played_m; played_s=played_s > 9 ? played_s:"0"+played_s; $('#played').html(played_m+":"+played_s); }); }}; jQuery(function ($){ var $body=$('body'); $body.on('click', '.wpdm-notify', function (){ $(this).animate({marginRight: '-500px'}, 1000, function (){ $(this).remove(); }); }); $body.on('click', '.dismis-on-click', function (){ $(this).slideUp(); }); $body.on('click', '.wpdm-download-link.wpdm-download-locked', function (e){ e.preventDefault(); hideLockFrame(); var parentWindow=document.createElement("a"); parentWindow.href=document.referrer.toString(); if(parentWindow.hostname===window.location.hostname||1) $(window.parent.document.body).append(""); else window.parent.postMessage({ 'task': 'showiframe', 'iframe': "" }, "*"); }); $body.on('click', '.wpdm-download-link.download-on-click', function (e){ e.preventDefault(); window.location.href=$(this).data('downloadurl'); }); $body.on('click', '.__wpdm_playvideo', function (e){ e.preventDefault(); $('#__wpdm_videoplayer').children('source').attr('src', $(this).data('video')); console.log('loading...'); var vid=document.getElementById("__wpdm_videoplayer"); vid.onloadeddata=function(){ console.log('loaded....'); }; $("#__wpdm_videoplayer").get(0).load(); }); $body.on('change', '.terms_checkbox', function (e){ if($(this).is(':checked')) $('#wpdm-filelist-'+$(this).data('pid')+' .btn.inddl, #xfilelist .btn.inddl').removeAttr('disabled'); else $('#wpdm-filelist-'+$(this).data('pid')+' .btn.inddl, #xfilelist .btn.inddl').attr('disabled', 'disabled'); }); $body.on('click', '.wpdm-social-lock', function (e){ try { _PopupCenter($(this).data('url'), 'Social Lock', 600, 400); }catch(e){}}); $body.on('click', '#wpdm-dashboard-sidebar a.list-group-item', function (e){ location.href=this.href; }); var $input_group_input=$('.input-group input'); $input_group_input.on('focus', function (){ $(this).parent('.input-group').find('.input-group-addon').addClass('input-group-addon-active'); }); $input_group_input.on('blur', function (){ $(this).parent().find('.input-group-addon').removeClass('input-group-addon-active'); }); $body.on('click', 'button.btn.inddl', function (e){ e.preventDefault(); var tis=this; if($(this).data('dlurl')!==undefined){ location.href=$(this).data('dlurl'); return; } $.post(wpdm_ajax_url, { action: 'wpdm_verify_file_pass', wpdmfileid: $(tis).data('pid'), wpdmfile: $(tis).data('file'), actioninddlpvr: 1, filepass: $($(tis).data('pass')).val() }, function (res){ if(res.error===''){ var dlurl=res.downloadurl; $(tis).data('dlurl', dlurl); wpdm_boot_popup("Password Verified!", "
Please click following button to start download.

Start Download
", [{ label: 'Close', class: 'btn btn-secondary', callback: function (){ this.modal('hide'); return false; }}] ); }}); }); $body.on('click', '.wpdm-download-locked.pop-over', function (){ var $dc=$($(this).attr('href')); var prts=$(this).attr('href').split('_'); var pid=prts[1]; if($(this).attr('data-ready')===undefined||$(this).attr('data-ready')==='hide'){ $(this).popover({ placement: 'bottom', html: true, content: function (){ if(wpdm_ajax_popup===1) return "
Loading...
"+'
'; else return $dc.html()+'
'; }}); $(this).popover('show'); if(wpdm_ajax_popup===1) $("#popcnt_"+pid).load(ajax_url,{action:'showLockOptions',id:pid}); $(this).data('ready', 'show'); }else{ $(this).popover('hide'); $(this).date('ready', 'hide'); } return false; }); $body.on('click', '.wpdm-indir', function (e){ e.preventDefault(); WPDM.blockUI('#xfilelist'); $('#xfilelist').load(location.href, { action: 'wpdmfilelistcd', pid: $(this).data('pid'), cd: $(this).data('dir') }, function (res){ WPDM.unblockUI('#xfilelist'); }); }); $body.on('click', '.role-tabs a', function (e){ $('.role-tabs a').removeClass('active'); $(this).addClass('active'); }); $body.on('click', '.btn-wpdm-a2f', function (e){ var a2fbtn=$(this); $.post(ajax_url, {action: 'wpdm_addtofav', pid: $(this).data('package')}, function (res){ if(a2fbtn.hasClass('btn-secondary')) a2fbtn.removeClass('btn-secondary').addClass('btn-danger').html(a2fbtn.data('rlabel')); else a2fbtn.removeClass('btn-danger').addClass('btn-secondary').html(a2fbtn.data('alabel')); }); }); $body.on('click', '.wpdm-btn-play', function (e){ e.preventDefault(); if($('#wpdm-audio-player').length===0){ var player=document.createElement('audio'); player.id='wpdm-audio-player'; player.controls='controls'; player.autoplay=1; player.type='audio/mpeg'; $('body').append(player); } player=$('#wpdm-audio-player'); var btn=$(this); if(btn.data('state')==='stop'||!btn.data('state')){ player.css('display', 'none'); player.attr('src', $(this).data('song') + "&play=song.mp3"); } if(btn.data('state')==='playing'){ $(this).data('state', 'paused'); player.trigger('pause'); $(this).html(""); return false; } if(btn.data('state')==='paused'){ $(this).data('state', 'playing'); player.trigger('play'); $('.wpdm-btn-play').html(""); $(this).html(""); return false; } $('.wpdm-btn-play').data("state", "stop"); $('.wpdm-btn-play').html(""); btn.html(""); player.unbind('loadedmetadata'); player.on('loadedmetadata', function (){ console.log("Playing " + this.src + ", for: " + this.duration + "seconds."); btn.html(""); btn.data('state', 'playing'); WPDM.audioUI(this); }); document.getElementById('wpdm-audio-player').onended=function (){ btn.html(""); btn.data('state', 'stop'); }}); $('.wpdm_remove_empty').remove(); var file_frame, dfield; $body.on('click', '.wpdm-media-upload', function (event){ event.preventDefault(); dfield=$($(this).attr('rel')); if(file_frame){ file_frame.open(); return; } file_frame=wp.media.frames.file_frame=wp.media({ title: $(this).data('uploader_title'), button: { text: $(this).data('uploader_button_text') }, multiple: false }); file_frame.on('select', function (){ attachment=file_frame.state().get('selection').first().toJSON(); dfield.val(attachment.url); }); file_frame.open(); }); $body.on('click', '.btn-image-selector' , function(event){ event.preventDefault(); dfield=$($(this).attr('rel')); var dfield_h=$($(this).attr('rel')+'_hidden'); if(file_frame){ file_frame.open(); return; } file_frame=wp.media.frames.file_frame=wp.media({ title: $(this).data('uploader_title'), button: { text: $(this).data('uploader_button_text') }, multiple: false }); file_frame.on('select', function(){ attachment=file_frame.state().get('selection').first().toJSON(); dfield.attr('src', attachment.url); dfield_h.val(attachment.url); }); file_frame.open(); }); $body.on('click', '.pagination.async a, .__wpdm_load_async', function (e){ e.preventDefault(); var _cont=$(this).data('container'); $(_cont).addClass('blockui'); $.get(this.href, function (res){ $(_cont).html($(res).find(_cont).html()); $(_cont).removeClass('blockui'); }); }); $('.__wpdm_submit_async').on('submit', function (e){ e.preventDefault(); var _cont=$(this).data('container'); $(_cont).addClass('blockui'); $(this).ajaxSubmit({ success: function (response){ $(_cont).html($(response).find(_cont).html()); $(_cont).removeClass('blockui'); }}) }); var unlocked=[]; $('.wpdm-filelist-area[data-termlock]').on('mouseover', function (){ try { if(unlocked[$(this).data('packageid')]===1) return; } catch (e){ } $('#term-panel-' + $(this).data('packageid')).fadeIn('fast'); }); $('.terms_checkbox').on('click', function (){ if($(this).is(':checked')){ unlocked[$(this).data('pid')]=1; $('#term-panel-' + $(this).data('pid')).fadeOut('fast'); $('.download_footer_'+$(this).data('pid')).slideDown(); } else $('.download_footer_'+$(this).data('pid')).slideUp(); }); $formcontrol=$('.input-wrapper input'); $formcontrol.on('focus', function (){ $('.input-wrapper').removeClass('input-focused'); $(this).parent('.input-wrapper').addClass('input-focused'); }); $formcontrol.on('change', function (){ $('.input-wrapper').removeClass('input-focused'); $(this).parent('.input-wrapper').addClass('input-focused'); if($(this).val()!=='') $(this).parent('.input-wrapper').addClass('input-withvalue'); else $(this).parent('.input-wrapper').removeClass('input-withvalue'); }); }); function _PopupCenter(url, title, w, h){ var dualScreenLeft=window.screenLeft!=undefined ? window.screenLeft:screen.left; var dualScreenTop=window.screenTop!=undefined ? window.screenTop:screen.top; var width=window.innerWidth ? window.innerWidth:document.documentElement.clientWidth ? document.documentElement.clientWidth:screen.width; var height=window.innerHeight ? window.innerHeight:document.documentElement.clientHeight ? document.documentElement.clientHeight:screen.height; var left=((width / 2) - (w / 2)) + dualScreenLeft; var top=((height / 2) - (h / 2)) + dualScreenTop; var newWindow=window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); if(window.focus){ newWindow.focus(); } return false; } function generatepass(id){ tb_show('Generate Password',ajaxurl+'?action=wpdm_generate_password&id='+id); } function hideLockFrame(){ jQuery('#wpdm-lock-frame').remove(); } function wpdm_bootModal(heading, content, width){ var html; if(!width) width=400; jQuery("#w3eden__bootModal").remove(); html='
'; jQuery('body').append(html); jQuery("#__bootModal").modal('show'); } function wpdm_boot_popup(heading, content, buttons){ var html, $=jQuery; $("#w3eden__boot_popup").remove(); var _buttons=''; if(buttons){ _buttons='\n'; } html='
'; $('body').append(html); $("#__boot_popup").modal('show'); $.each(buttons, function (i, button){ var id='btx_'+i; $('#'+id).unbind('click'); $('#'+id).bind('click' , function (){ button.callback.call($("#__boot_popup")); return false; }); }); return $("#__boot_popup"); } function wpdm_iframe_modal(url, closebutton){ var iframe, $=jQuery; if(url==='close'){ $('#wpdm_iframe_modal').remove(); $('#ifcb').remove(); $('body').removeClass('wpdm-iframe-modal-open'); return false; } var closebutton_html=""; if(closebutton!==undefined&&closebutton===true) closebutton_html=""; iframe=''+closebutton_html; $('body').append(iframe).addClass('wpdm-iframe-modal-open'); $('#wpdm_iframe_modal').fadeIn(); }; (function(){ var $, AbstractChosen, Chosen, SelectParser, _ref, __hasProp={}.hasOwnProperty, __extends=function(child, parent){ for (var key in parent){ if(__hasProp.call(parent, key)) child[key]=parent[key]; } function ctor(){ this.constructor=child; } ctor.prototype=parent.prototype; child.prototype=new ctor(); child.__super__=parent.prototype; return child; }; SelectParser=(function(){ function SelectParser(){ this.options_index=0; this.parsed=[]; } SelectParser.prototype.add_node=function(child){ if(child.nodeName.toUpperCase()==="OPTGROUP"){ return this.add_group(child); }else{ return this.add_option(child); }}; SelectParser.prototype.add_group=function(group){ var group_position, option, _i, _len, _ref, _results; group_position=this.parsed.length; this.parsed.push({ array_index: group_position, group: true, label: this.escapeExpression(group.label), title: group.title ? group.title:void 0, children: 0, disabled: group.disabled, classes: group.className }); _ref=group.childNodes; _results=[]; for (_i=0, _len=_ref.length; _i < _len; _i++){ option=_ref[_i]; _results.push(this.add_option(option, group_position, group.disabled)); } return _results; }; SelectParser.prototype.add_option=function(option, group_position, group_disabled){ if(option.nodeName.toUpperCase()==="OPTION"){ if(option.text!==""){ if(group_position!=null){ this.parsed[group_position].children +=1; } this.parsed.push({ array_index: this.parsed.length, options_index: this.options_index, value: option.value, text: option.text, html: option.innerHTML, title: option.title ? option.title:void 0, selected: option.selected, disabled: group_disabled===true ? group_disabled:option.disabled, group_array_index: group_position, group_label: group_position!=null ? this.parsed[group_position].label:null, classes: option.className, style: option.style.cssText }); }else{ this.parsed.push({ array_index: this.parsed.length, options_index: this.options_index, empty: true }); } return this.options_index +=1; }}; SelectParser.prototype.escapeExpression=function(text){ var map, unsafe_chars; if((text==null)||text===false){ return ""; } if(!/[\&\<\>\"\'\`]/.test(text)){ return text; } map={ "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }; unsafe_chars=/&(?!\w+;)|[\<\>\"\'\`]/g; return text.replace(unsafe_chars, function(chr){ return map[chr]||"&"; }); }; return SelectParser; })(); SelectParser.select_to_array=function(select){ var child, parser, _i, _len, _ref; parser=new SelectParser(); _ref=select.childNodes; for (_i=0, _len=_ref.length; _i < _len; _i++){ child=_ref[_i]; parser.add_node(child); } return parser.parsed; }; AbstractChosen=(function(){ function AbstractChosen(form_field, options){ this.form_field=form_field; this.options=options!=null ? options:{}; if(!AbstractChosen.browser_is_supported()){ return; } this.is_multiple=this.form_field.multiple; this.set_default_text(); this.set_default_values(); this.setup(); this.set_up_html(); this.register_observers(); this.on_ready(); } AbstractChosen.prototype.set_default_values=function(){ var _this=this; this.click_test_action=function(evt){ return _this.test_active_click(evt); }; this.activate_action=function(evt){ return _this.activate_field(evt); }; this.active_field=false; this.mouse_on_container=false; this.results_showing=false; this.result_highlighted=null; this.allow_single_deselect=(this.options.allow_single_deselect!=null)&&(this.form_field.options[0]!=null)&&this.form_field.options[0].text==="" ? this.options.allow_single_deselect:false; this.disable_search_threshold=this.options.disable_search_threshold||0; this.disable_search=this.options.disable_search||false; this.enable_split_word_search=this.options.enable_split_word_search!=null ? this.options.enable_split_word_search:true; this.group_search=this.options.group_search!=null ? this.options.group_search:true; this.search_contains=this.options.search_contains||false; this.single_backstroke_delete=this.options.single_backstroke_delete!=null ? this.options.single_backstroke_delete:true; this.max_selected_options=this.options.max_selected_options||Infinity; this.inherit_select_classes=this.options.inherit_select_classes||false; this.display_selected_options=this.options.display_selected_options!=null ? this.options.display_selected_options:true; this.display_disabled_options=this.options.display_disabled_options!=null ? this.options.display_disabled_options:true; return this.include_group_label_in_selected=this.options.include_group_label_in_selected||false; }; AbstractChosen.prototype.set_default_text=function(){ if(this.form_field.getAttribute("data-placeholder")){ this.default_text=this.form_field.getAttribute("data-placeholder"); }else if(this.is_multiple){ this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text; }else{ this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text; } return this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text; }; AbstractChosen.prototype.choice_label=function(item){ if(this.include_group_label_in_selected&&(item.group_label!=null)){ return "" + item.group_label + "" + item.html; }else{ return item.html; }}; AbstractChosen.prototype.mouse_enter=function(){ return this.mouse_on_container=true; }; AbstractChosen.prototype.mouse_leave=function(){ return this.mouse_on_container=false; }; AbstractChosen.prototype.input_focus=function(evt){ var _this=this; if(this.is_multiple){ if(!this.active_field){ return setTimeout((function(){ return _this.container_mousedown(); }), 50); }}else{ if(!this.active_field){ return this.activate_field(); }} }; AbstractChosen.prototype.input_blur=function(evt){ var _this=this; if(!this.mouse_on_container){ this.active_field=false; return setTimeout((function(){ return _this.blur_test(); }), 100); }}; AbstractChosen.prototype.results_option_build=function(options){ var content, data, _i, _len, _ref; content=''; _ref=this.results_data; for (_i=0, _len=_ref.length; _i < _len; _i++){ data=_ref[_i]; if(data.group){ content +=this.result_add_group(data); }else{ content +=this.result_add_option(data); } if(options!=null ? options.first:void 0){ if(data.selected&&this.is_multiple){ this.choice_build(data); }else if(data.selected&&!this.is_multiple){ this.single_set_selected_text(this.choice_label(data)); }} } return content; }; AbstractChosen.prototype.result_add_option=function(option){ var classes, option_el; if(!option.search_match){ return ''; } if(!this.include_option_in_results(option)){ return ''; } classes=[]; if(!option.disabled&&!(option.selected&&this.is_multiple)){ classes.push("active-result"); } if(option.disabled&&!(option.selected&&this.is_multiple)){ classes.push("disabled-result"); } if(option.selected){ classes.push("result-selected"); } if(option.group_array_index!=null){ classes.push("group-option"); } if(option.classes!==""){ classes.push(option.classes); } option_el=document.createElement("li"); option_el.className=classes.join(" "); option_el.style.cssText=option.style; option_el.setAttribute("data-option-array-index", option.array_index); option_el.innerHTML=option.search_text; if(option.title){ option_el.title=option.title; } return this.outerHTML(option_el); }; AbstractChosen.prototype.result_add_group=function(group){ var classes, group_el; if(!(group.search_match||group.group_match)){ return ''; } if(!(group.active_options > 0)){ return ''; } classes=[]; classes.push("group-result"); if(group.classes){ classes.push(group.classes); } group_el=document.createElement("li"); group_el.className=classes.join(" "); group_el.innerHTML=group.search_text; if(group.title){ group_el.title=group.title; } return this.outerHTML(group_el); }; AbstractChosen.prototype.results_update_field=function(){ this.set_default_text(); if(!this.is_multiple){ this.results_reset_cleanup(); } this.result_clear_highlight(); this.results_build(); if(this.results_showing){ return this.winnow_results(); }}; AbstractChosen.prototype.reset_single_select_options=function(){ var result, _i, _len, _ref, _results; _ref=this.results_data; _results=[]; for (_i=0, _len=_ref.length; _i < _len; _i++){ result=_ref[_i]; if(result.selected){ _results.push(result.selected=false); }else{ _results.push(void 0); }} return _results; }; AbstractChosen.prototype.results_toggle=function(){ if(this.results_showing){ return this.results_hide(); }else{ return this.results_show(); }}; AbstractChosen.prototype.results_search=function(evt){ if(this.results_showing){ return this.winnow_results(); }else{ return this.results_show(); }}; AbstractChosen.prototype.winnow_results=function(){ var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref; this.no_results_clear(); results=0; searchText=this.get_search_text(); escapedSearchText=searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); zregex=new RegExp(escapedSearchText, 'i'); regex=this.get_search_regex(escapedSearchText); _ref=this.results_data; for (_i=0, _len=_ref.length; _i < _len; _i++){ option=_ref[_i]; option.search_match=false; results_group=null; if(this.include_option_in_results(option)){ if(option.group){ option.group_match=false; option.active_options=0; } if((option.group_array_index!=null)&&this.results_data[option.group_array_index]){ results_group=this.results_data[option.group_array_index]; if(results_group.active_options===0&&results_group.search_match){ results +=1; } results_group.active_options +=1; } option.search_text=option.group ? option.label:option.html; if(!(option.group&&!this.group_search)){ option.search_match=this.search_string_match(option.search_text, regex); if(option.search_match&&!option.group){ results +=1; } if(option.search_match){ if(searchText.length){ startpos=option.search_text.search(zregex); text=option.search_text.substr(0, startpos + searchText.length) + '' + option.search_text.substr(startpos + searchText.length); option.search_text=text.substr(0, startpos) + '' + text.substr(startpos); } if(results_group!=null){ results_group.group_match=true; }}else if((option.group_array_index!=null)&&this.results_data[option.group_array_index].search_match){ option.search_match=true; }} }} this.result_clear_highlight(); if(results < 1&&searchText.length){ this.update_results_content(""); return this.no_results(searchText); }else{ this.update_results_content(this.results_option_build()); return this.winnow_results_set_highlight(); }}; AbstractChosen.prototype.get_search_regex=function(escaped_search_string){ var regex_anchor; regex_anchor=this.search_contains ? "":"^"; return new RegExp(regex_anchor + escaped_search_string, 'i'); }; AbstractChosen.prototype.search_string_match=function(search_string, regex){ var part, parts, _i, _len; if(regex.test(search_string)){ return true; }else if(this.enable_split_word_search&&(search_string.indexOf(" ") >=0||search_string.indexOf("[")===0)){ parts=search_string.replace(/\[|\]/g, "").split(" "); if(parts.length){ for (_i=0, _len=parts.length; _i < _len; _i++){ part=parts[_i]; if(regex.test(part)){ return true; }} }} }; AbstractChosen.prototype.choices_count=function(){ var option, _i, _len, _ref; if(this.selected_option_count!=null){ return this.selected_option_count; } this.selected_option_count=0; _ref=this.form_field.options; for (_i=0, _len=_ref.length; _i < _len; _i++){ option=_ref[_i]; if(option.selected){ this.selected_option_count +=1; }} return this.selected_option_count; }; AbstractChosen.prototype.choices_click=function(evt){ evt.preventDefault(); if(!(this.results_showing||this.is_disabled)){ return this.results_show(); }}; AbstractChosen.prototype.keyup_checker=function(evt){ var stroke, _ref; stroke=(_ref=evt.which)!=null ? _ref:evt.keyCode; this.search_field_scale(); switch (stroke){ case 8: if(this.is_multiple&&this.backstroke_length < 1&&this.choices_count() > 0){ return this.keydown_backstroke(); }else if(!this.pending_backstroke){ this.result_clear_highlight(); return this.results_search(); } break; case 13: evt.preventDefault(); if(this.results_showing){ return this.result_select(evt); } break; case 27: if(this.results_showing){ this.results_hide(); } return true; case 9: case 38: case 40: case 16: case 91: case 17: break; default: return this.results_search(); }}; AbstractChosen.prototype.clipboard_event_checker=function(evt){ var _this=this; return setTimeout((function(){ return _this.results_search(); }), 50); }; AbstractChosen.prototype.container_width=function(){ if(this.options.width!=null){ return this.options.width; }else{ return "" + this.form_field.offsetWidth + "px"; }}; AbstractChosen.prototype.include_option_in_results=function(option){ if(this.is_multiple&&(!this.display_selected_options&&option.selected)){ return false; } if(!this.display_disabled_options&&option.disabled){ return false; } if(option.empty){ return false; } return true; }; AbstractChosen.prototype.search_results_touchstart=function(evt){ this.touch_started=true; return this.search_results_mouseover(evt); }; AbstractChosen.prototype.search_results_touchmove=function(evt){ this.touch_started=false; return this.search_results_mouseout(evt); }; AbstractChosen.prototype.search_results_touchend=function(evt){ if(this.touch_started){ return this.search_results_mouseup(evt); }}; AbstractChosen.prototype.outerHTML=function(element){ var tmp; if(element.outerHTML){ return element.outerHTML; } tmp=document.createElement("div"); tmp.appendChild(element); return tmp.innerHTML; }; AbstractChosen.browser_is_supported=function(){ if(window.navigator.appName==="Microsoft Internet Explorer"){ return document.documentMode >=8; } if(/iP(od|hone)/i.test(window.navigator.userAgent)){ return false; } if(/Android/i.test(window.navigator.userAgent)){ if(/Mobile/i.test(window.navigator.userAgent)){ return false; }} return true; }; AbstractChosen.default_multiple_text="Select Some Options"; AbstractChosen.default_single_text="Select an Option"; AbstractChosen.default_no_result_text="No results match"; return AbstractChosen; })(); $=jQuery; $.fn.extend({ chosen: function(options){ if(!AbstractChosen.browser_is_supported()){ return this; } return this.each(function(input_field){ var $this, chosen; $this=$(this); chosen=$this.data('chosen'); if(options==='destroy'&&chosen instanceof Chosen){ chosen.destroy(); }else if(!(chosen instanceof Chosen)){ $this.data('chosen', new Chosen(this, options)); }}); }}); Chosen=(function(_super){ __extends(Chosen, _super); function Chosen(){ _ref=Chosen.__super__.constructor.apply(this, arguments); return _ref; } Chosen.prototype.setup=function(){ this.form_field_jq=$(this.form_field); this.current_selectedIndex=this.form_field.selectedIndex; return this.is_rtl=this.form_field_jq.hasClass("chosen-rtl"); }; Chosen.prototype.set_up_html=function(){ var container_classes, container_props; container_classes=["chosen-container"]; container_classes.push("chosen-container-" + (this.is_multiple ? "multi":"single")); if(this.inherit_select_classes&&this.form_field.className){ container_classes.push(this.form_field.className); } if(this.is_rtl){ container_classes.push("chosen-rtl"); } container_props={ 'class': container_classes.join(' '), 'style': "width: " + (this.container_width()) + ";", 'title': this.form_field.title }; if(this.form_field.id.length){ container_props.id=this.form_field.id.replace(/[^\w]/g, '_') + "_chosen"; } this.container=$("
", container_props); if(this.is_multiple){ this.container.html('
    '); }else{ this.container.html('' + this.default_text + '
      '); } this.form_field_jq.hide().after(this.container); this.dropdown=this.container.find('div.chosen-drop').first(); this.search_field=this.container.find('input').first(); this.search_results=this.container.find('ul.chosen-results').first(); this.search_field_scale(); this.search_no_results=this.container.find('li.no-results').first(); if(this.is_multiple){ this.search_choices=this.container.find('ul.chosen-choices').first(); this.search_container=this.container.find('li.search-field').first(); }else{ this.search_container=this.container.find('div.chosen-search').first(); this.selected_item=this.container.find('.chosen-single').first(); } this.results_build(); this.set_tab_index(); return this.set_label_behavior(); }; Chosen.prototype.on_ready=function(){ return this.form_field_jq.trigger("chosen:ready", { chosen: this }); }; Chosen.prototype.register_observers=function(){ var _this=this; this.container.bind('touchstart.chosen', function(evt){ _this.container_mousedown(evt); return evt.preventDefault(); }); this.container.bind('touchend.chosen', function(evt){ _this.container_mouseup(evt); return evt.preventDefault(); }); this.container.bind('mousedown.chosen', function(evt){ _this.container_mousedown(evt); }); this.container.bind('mouseup.chosen', function(evt){ _this.container_mouseup(evt); }); this.container.bind('mouseenter.chosen', function(evt){ _this.mouse_enter(evt); }); this.container.bind('mouseleave.chosen', function(evt){ _this.mouse_leave(evt); }); this.search_results.bind('mouseup.chosen', function(evt){ _this.search_results_mouseup(evt); }); this.search_results.bind('mouseover.chosen', function(evt){ _this.search_results_mouseover(evt); }); this.search_results.bind('mouseout.chosen', function(evt){ _this.search_results_mouseout(evt); }); this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt){ _this.search_results_mousewheel(evt); }); this.search_results.bind('touchstart.chosen', function(evt){ _this.search_results_touchstart(evt); }); this.search_results.bind('touchmove.chosen', function(evt){ _this.search_results_touchmove(evt); }); this.search_results.bind('touchend.chosen', function(evt){ _this.search_results_touchend(evt); }); this.form_field_jq.bind("chosen:updated.chosen", function(evt){ _this.results_update_field(evt); }); this.form_field_jq.bind("chosen:activate.chosen", function(evt){ _this.activate_field(evt); }); this.form_field_jq.bind("chosen:open.chosen", function(evt){ _this.container_mousedown(evt); }); this.form_field_jq.bind("chosen:close.chosen", function(evt){ _this.input_blur(evt); }); this.search_field.bind('blur.chosen', function(evt){ _this.input_blur(evt); }); this.search_field.bind('keyup.chosen', function(evt){ _this.keyup_checker(evt); }); this.search_field.bind('keydown.chosen', function(evt){ _this.keydown_checker(evt); }); this.search_field.bind('focus.chosen', function(evt){ _this.input_focus(evt); }); this.search_field.bind('cut.chosen', function(evt){ _this.clipboard_event_checker(evt); }); this.search_field.bind('paste.chosen', function(evt){ _this.clipboard_event_checker(evt); }); if(this.is_multiple){ return this.search_choices.bind('click.chosen', function(evt){ _this.choices_click(evt); }); }else{ return this.container.bind('click.chosen', function(evt){ evt.preventDefault(); }); }}; Chosen.prototype.destroy=function(){ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action); if(this.search_field[0].tabIndex){ this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex; } this.container.remove(); this.form_field_jq.removeData('chosen'); return this.form_field_jq.show(); }; Chosen.prototype.search_field_disabled=function(){ this.is_disabled=this.form_field_jq[0].disabled; if(this.is_disabled){ this.container.addClass('chosen-disabled'); this.search_field[0].disabled=true; if(!this.is_multiple){ this.selected_item.unbind("focus.chosen", this.activate_action); } return this.close_field(); }else{ this.container.removeClass('chosen-disabled'); this.search_field[0].disabled=false; if(!this.is_multiple){ return this.selected_item.bind("focus.chosen", this.activate_action); }} }; Chosen.prototype.container_mousedown=function(evt){ if(!this.is_disabled){ if(evt&&evt.type==="mousedown"&&!this.results_showing){ evt.preventDefault(); } if(!((evt!=null)&&($(evt.target)).hasClass("search-choice-close"))){ if(!this.active_field){ if(this.is_multiple){ this.search_field.val(""); } $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action); this.results_show(); }else if(!this.is_multiple&&evt&&(($(evt.target)[0]===this.selected_item[0])||$(evt.target).parents("a.chosen-single").length)){ evt.preventDefault(); this.results_toggle(); } return this.activate_field(); }} }; Chosen.prototype.container_mouseup=function(evt){ if(evt.target.nodeName==="ABBR"&&!this.is_disabled){ return this.results_reset(evt); }}; Chosen.prototype.search_results_mousewheel=function(evt){ var delta; if(evt.originalEvent){ delta=evt.originalEvent.deltaY||-evt.originalEvent.wheelDelta||evt.originalEvent.detail; } if(delta!=null){ evt.preventDefault(); if(evt.type==='DOMMouseScroll'){ delta=delta * 40; } return this.search_results.scrollTop(delta + this.search_results.scrollTop()); }}; Chosen.prototype.blur_test=function(evt){ if(!this.active_field&&this.container.hasClass("chosen-container-active")){ return this.close_field(); }}; Chosen.prototype.close_field=function(){ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action); this.active_field=false; this.results_hide(); this.container.removeClass("chosen-container-active"); this.clear_backstroke(); this.show_search_field_default(); return this.search_field_scale(); }; Chosen.prototype.activate_field=function(){ this.container.addClass("chosen-container-active"); this.active_field=true; this.search_field.val(this.search_field.val()); return this.search_field.focus(); }; Chosen.prototype.test_active_click=function(evt){ var active_container; active_container=$(evt.target).closest('.chosen-container'); if(active_container.length&&this.container[0]===active_container[0]){ return this.active_field=true; }else{ return this.close_field(); }}; Chosen.prototype.results_build=function(){ this.parsing=true; this.selected_option_count=null; this.results_data=SelectParser.select_to_array(this.form_field); if(this.is_multiple){ this.search_choices.find("li.search-choice").remove(); }else if(!this.is_multiple){ this.single_set_selected_text(); if(this.disable_search||this.form_field.options.length <=this.disable_search_threshold){ this.search_field[0].readOnly=true; this.container.addClass("chosen-container-single-nosearch"); }else{ this.search_field[0].readOnly=false; this.container.removeClass("chosen-container-single-nosearch"); }} this.update_results_content(this.results_option_build({ first: true })); this.search_field_disabled(); this.show_search_field_default(); this.search_field_scale(); return this.parsing=false; }; Chosen.prototype.result_do_highlight=function(el){ var high_bottom, high_top, maxHeight, visible_bottom, visible_top; if(el.length){ this.result_clear_highlight(); this.result_highlight=el; this.result_highlight.addClass("highlighted"); maxHeight=parseInt(this.search_results.css("maxHeight"), 10); visible_top=this.search_results.scrollTop(); visible_bottom=maxHeight + visible_top; high_top=this.result_highlight.position().top + this.search_results.scrollTop(); high_bottom=high_top + this.result_highlight.outerHeight(); if(high_bottom >=visible_bottom){ return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight:0); }else if(high_top < visible_top){ return this.search_results.scrollTop(high_top); }} }; Chosen.prototype.result_clear_highlight=function(){ if(this.result_highlight){ this.result_highlight.removeClass("highlighted"); } return this.result_highlight=null; }; Chosen.prototype.results_show=function(){ if(this.is_multiple&&this.max_selected_options <=this.choices_count()){ this.form_field_jq.trigger("chosen:maxselected", { chosen: this }); return false; } this.container.addClass("chosen-with-drop"); this.results_showing=true; this.search_field.focus(); this.search_field.val(this.search_field.val()); this.winnow_results(); return this.form_field_jq.trigger("chosen:showing_dropdown", { chosen: this }); }; Chosen.prototype.update_results_content=function(content){ return this.search_results.html(content); }; Chosen.prototype.results_hide=function(){ if(this.results_showing){ this.result_clear_highlight(); this.container.removeClass("chosen-with-drop"); this.form_field_jq.trigger("chosen:hiding_dropdown", { chosen: this }); } return this.results_showing=false; }; Chosen.prototype.set_tab_index=function(el){ var ti; if(this.form_field.tabIndex){ ti=this.form_field.tabIndex; this.form_field.tabIndex=-1; return this.search_field[0].tabIndex=ti; }}; Chosen.prototype.set_label_behavior=function(){ var _this=this; this.form_field_label=this.form_field_jq.parents("label"); if(!this.form_field_label.length&&this.form_field.id.length){ this.form_field_label=$("label[for='" + this.form_field.id + "']"); } if(this.form_field_label.length > 0){ return this.form_field_label.bind('click.chosen', function(evt){ if(_this.is_multiple){ return _this.container_mousedown(evt); }else{ return _this.activate_field(); }}); }}; Chosen.prototype.show_search_field_default=function(){ if(this.is_multiple&&this.choices_count() < 1&&!this.active_field){ this.search_field.val(this.default_text); return this.search_field.addClass("default"); }else{ this.search_field.val(""); return this.search_field.removeClass("default"); }}; Chosen.prototype.search_results_mouseup=function(evt){ var target; target=$(evt.target).hasClass("active-result") ? $(evt.target):$(evt.target).parents(".active-result").first(); if(target.length){ this.result_highlight=target; this.result_select(evt); return this.search_field.focus(); }}; Chosen.prototype.search_results_mouseover=function(evt){ var target; target=$(evt.target).hasClass("active-result") ? $(evt.target):$(evt.target).parents(".active-result").first(); if(target){ return this.result_do_highlight(target); }}; Chosen.prototype.search_results_mouseout=function(evt){ if($(evt.target).hasClass("active-result"||$(evt.target).parents('.active-result').first())){ return this.result_clear_highlight(); }}; Chosen.prototype.choice_build=function(item){ var choice, close_link, _this=this; choice=$('
    • ', { "class": "search-choice" }).html("" + (this.choice_label(item)) + ""); if(item.disabled){ choice.addClass('search-choice-disabled'); }else{ close_link=$('', { "class": 'search-choice-close', 'data-option-array-index': item.array_index }); close_link.bind('click.chosen', function(evt){ return _this.choice_destroy_link_click(evt); }); choice.append(close_link); } return this.search_container.before(choice); }; Chosen.prototype.choice_destroy_link_click=function(evt){ evt.preventDefault(); evt.stopPropagation(); if(!this.is_disabled){ return this.choice_destroy($(evt.target)); }}; Chosen.prototype.choice_destroy=function(link){ if(this.result_deselect(link[0].getAttribute("data-option-array-index"))){ this.show_search_field_default(); if(this.is_multiple&&this.choices_count() > 0&&this.search_field.val().length < 1){ this.results_hide(); } link.parents('li').first().remove(); return this.search_field_scale(); }}; Chosen.prototype.results_reset=function(){ this.reset_single_select_options(); this.form_field.options[0].selected=true; this.single_set_selected_text(); this.show_search_field_default(); this.results_reset_cleanup(); this.form_field_jq.trigger("change"); if(this.active_field){ return this.results_hide(); }}; Chosen.prototype.results_reset_cleanup=function(){ this.current_selectedIndex=this.form_field.selectedIndex; return this.selected_item.find("abbr").remove(); }; Chosen.prototype.result_select=function(evt){ var high, item; if(this.result_highlight){ high=this.result_highlight; this.result_clear_highlight(); if(this.is_multiple&&this.max_selected_options <=this.choices_count()){ this.form_field_jq.trigger("chosen:maxselected", { chosen: this }); return false; } if(this.is_multiple){ high.removeClass("active-result"); }else{ this.reset_single_select_options(); } high.addClass("result-selected"); item=this.results_data[high[0].getAttribute("data-option-array-index")]; item.selected=true; this.form_field.options[item.options_index].selected=true; this.selected_option_count=null; if(this.is_multiple){ this.choice_build(item); }else{ this.single_set_selected_text(this.choice_label(item)); } if(!((evt.metaKey||evt.ctrlKey)&&this.is_multiple)){ this.results_hide(); } this.search_field.val(""); if(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex){ this.form_field_jq.trigger("change", { 'selected': this.form_field.options[item.options_index].value }); } this.current_selectedIndex=this.form_field.selectedIndex; evt.preventDefault(); return this.search_field_scale(); }}; Chosen.prototype.single_set_selected_text=function(text){ if(text==null){ text=this.default_text; } if(text===this.default_text){ this.selected_item.addClass("chosen-default"); }else{ this.single_deselect_control_build(); this.selected_item.removeClass("chosen-default"); } return this.selected_item.find("span").html(text); }; Chosen.prototype.result_deselect=function(pos){ var result_data; result_data=this.results_data[pos]; if(!this.form_field.options[result_data.options_index].disabled){ result_data.selected=false; this.form_field.options[result_data.options_index].selected=false; this.selected_option_count=null; this.result_clear_highlight(); if(this.results_showing){ this.winnow_results(); } this.form_field_jq.trigger("change", { deselected: this.form_field.options[result_data.options_index].value }); this.search_field_scale(); return true; }else{ return false; }}; Chosen.prototype.single_deselect_control_build=function(){ if(!this.allow_single_deselect){ return; } if(!this.selected_item.find("abbr").length){ this.selected_item.find("span").first().after(""); } return this.selected_item.addClass("chosen-single-with-deselect"); }; Chosen.prototype.get_search_text=function(){ return $('
      ').text($.trim(this.search_field.val())).html(); }; Chosen.prototype.winnow_results_set_highlight=function(){ var do_high, selected_results; selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result"):[]; do_high=selected_results.length ? selected_results.first():this.search_results.find(".active-result").first(); if(do_high!=null){ return this.result_do_highlight(do_high); }}; Chosen.prototype.no_results=function(terms){ var no_results_html; no_results_html=$('
    • ' + this.results_none_found + ' ""
    • '); no_results_html.find("span").first().html(terms); this.search_results.append(no_results_html); return this.form_field_jq.trigger("chosen:no_results", { chosen: this }); }; Chosen.prototype.no_results_clear=function(){ return this.search_results.find(".no-results").remove(); }; Chosen.prototype.keydown_arrow=function(){ var next_sib; if(this.results_showing&&this.result_highlight){ next_sib=this.result_highlight.nextAll("li.active-result").first(); if(next_sib){ return this.result_do_highlight(next_sib); }}else{ return this.results_show(); }}; Chosen.prototype.keyup_arrow=function(){ var prev_sibs; if(!this.results_showing&&!this.is_multiple){ return this.results_show(); }else if(this.result_highlight){ prev_sibs=this.result_highlight.prevAll("li.active-result"); if(prev_sibs.length){ return this.result_do_highlight(prev_sibs.first()); }else{ if(this.choices_count() > 0){ this.results_hide(); } return this.result_clear_highlight(); }} }; Chosen.prototype.keydown_backstroke=function(){ var next_available_destroy; if(this.pending_backstroke){ this.choice_destroy(this.pending_backstroke.find("a").first()); return this.clear_backstroke(); }else{ next_available_destroy=this.search_container.siblings("li.search-choice").last(); if(next_available_destroy.length&&!next_available_destroy.hasClass("search-choice-disabled")){ this.pending_backstroke=next_available_destroy; if(this.single_backstroke_delete){ return this.keydown_backstroke(); }else{ return this.pending_backstroke.addClass("search-choice-focus"); }} }}; Chosen.prototype.clear_backstroke=function(){ if(this.pending_backstroke){ this.pending_backstroke.removeClass("search-choice-focus"); } return this.pending_backstroke=null; }; Chosen.prototype.keydown_checker=function(evt){ var stroke, _ref1; stroke=(_ref1=evt.which)!=null ? _ref1:evt.keyCode; this.search_field_scale(); if(stroke!==8&&this.pending_backstroke){ this.clear_backstroke(); } switch (stroke){ case 8: this.backstroke_length=this.search_field.val().length; break; case 9: if(this.results_showing&&!this.is_multiple){ this.result_select(evt); } this.mouse_on_container=false; break; case 13: if(this.results_showing){ evt.preventDefault(); } break; case 32: if(this.disable_search){ evt.preventDefault(); } break; case 38: evt.preventDefault(); this.keyup_arrow(); break; case 40: evt.preventDefault(); this.keydown_arrow(); break; }}; Chosen.prototype.search_field_scale=function(){ var div, f_width, h, style, style_block, styles, w, _i, _len; if(this.is_multiple){ h=0; w=0; style_block="position:absolute; left: -1000px; top: -1000px; display:none;"; styles=['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing']; for (_i=0, _len=styles.length; _i < _len; _i++){ style=styles[_i]; style_block +=style + ":" + this.search_field.css(style) + ";"; } div=$('
      ', { 'style': style_block }); div.text(this.search_field.val()); $('body').append(div); w=div.width() + 25; div.remove(); f_width=this.container.outerWidth(); if(w > f_width - 10){ w=f_width - 10; } return this.search_field.css({ 'width': w + 'px' }); }}; return Chosen; })(AbstractChosen); }).call(this); var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();